Packageorg.un.flex.graphLayout.visual
Classpublic class DefaultEdgeRenderer
ImplementsIEdgeRenderer

This is the default edge renderer, which draws the edges as straight lines from one node to another.



Public Methods
 MethodDefined by
  
draw(g:Graphics, edge:IEdge, displayLabel:Boolean = false):void
The draw function, i.e.
DefaultEdgeRenderer
Method detail
draw()method
public function draw(g:Graphics, edge:IEdge, displayLabel:Boolean = false):void

The draw function, i.e. the main function to be used. Draws a straight line from one node of the edge to the other. The colour is determined by the "disting" parameter and a set of edge parameters, which are stored in an edge object. Draws an edge. The way how the colouring is currently handled, with the distinguished parameter is not appropriate, this may need to change to something more flexible.

Parameters
g:Graphics — Reference to the Graphics object of the Drawing surface.
 
edge:IEdge — The edge to draw, it needs to provide all the information required, i.e. locations.
 
displayLabel:Boolean (default = false) — If set, it displays a label in the middle of the egde, provided the edge has an edge renderer (UIComponent) associated with it.