| Package | org.un.flex.graphLayout.visual |
| Class | public class FlowEdgeRenderer |
| Implements | IEdgeRenderer |
| Property | Defined by | ||
|---|---|---|---|
| maxBaseWidth : Number
This property describes the default maximum base width of the flow.
| FlowEdgeRenderer | ||
| relativeEdgeMagnitude : Number
This property describes the relation or scale
for the specified edge flow values.
| FlowEdgeRenderer | ||
| Method | Defined by | ||
|---|---|---|---|
|
The constructor just initialises some default values.
| FlowEdgeRenderer | ||
|
The draw function, i.e.
| FlowEdgeRenderer | ||
| maxBaseWidth | property |
public var maxBaseWidth:NumberThis property describes the default maximum base width of the flow. It should be oriented on the size of the node labels.
The default value is 100.
| relativeEdgeMagnitude | property |
public var relativeEdgeMagnitude:NumberThis property describes the relation or scale for the specified edge flow values. It is assumed to be a maximum and the drawing thickness will be oriented on that value. This does not mean that not larger values can be specified, but they may look ugly.
The default value is 1000.
| FlowEdgeRenderer | () | constructor |
public function FlowEdgeRenderer()The constructor just initialises some default values.
| draw | () | method |
public function draw(g:Graphics, edge:IEdge, displayLabel:Boolean = false):voidThe 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 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.
Parametersg: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.
|