public function draw(g:Graphics, fromView:UIComponent, toView:UIComponent, fromX:int, fromY:int, toX:int, toY:int, graph:Graph):Boolean SpringGraph will call this function each time it needs to draw
a link connecting two itemRenderer.
Note that fromView.data is the 'from' Item and toView.data is the 'to' Item.
Parameters
| g:Graphics — a Flash graphics object, representing the entire screen area of the
SpringGraph component. You can use various Flash drawing commands to draw
onto this drawing surface
|
| |
| fromView:UIComponent — the itemRenderer instance for the 'from' Item of this linik
|
| |
| toView:UIComponent — the itemRenderer instance for the 'to' Item of this link
|
| |
| fromX:int — the x-coordinate of fromView
|
| |
| fromY:int — the y-coordinate of fromView
|
| |
| toX:int — the x-coordinate of toView
|
| |
| toY:int — the y-coordinate of toView
|
| |
| graph:Graph — the Graph that we are drawing
|
Returns
| Boolean — true if we successfully drew the edge, false if we want the SpringGraph
to draw the edge.
|