| Package | org.un.flex.graphLayout.visual |
| Class | public class FlowCurveEdgeRenderer |
| Implements | IEdgeRenderer |
| Property | Defined by | ||
|---|---|---|---|
| bendingDegree : int = 100
This property describes the deviation of the bending point.
| FlowCurveEdgeRenderer | ||
| bendingDirection : int = 0
This property describes whether all the deviations should
turn left or right.
| FlowCurveEdgeRenderer | ||
| maxBaseWidth : Number
This property describes the default maximum base width of the flow.
| FlowCurveEdgeRenderer | ||
| relativeEdgeMagnitude : Number
This property describes the relation or scale
for the specified edge flow values.
| FlowCurveEdgeRenderer | ||
| Method | Defined by | ||
|---|---|---|---|
|
The constructor just initialises some default values.
| FlowCurveEdgeRenderer | ||
|
The draw function, i.e.
| FlowCurveEdgeRenderer | ||
| Constant | Defined by | ||
|---|---|---|---|
| BEND_LEFT : int = 0 [static]
constant to describe that the bending should be left.
| FlowCurveEdgeRenderer | ||
| BEND_RIGHT : int = 1 [static]
constant to describe that the bending should be right.
| FlowCurveEdgeRenderer | ||
| bendingDegree | property |
public var bendingDegree:int = 100This property describes the deviation of the bending point. Right now this is fixed in pixel. Keeping the deviation fixed will lead to more pronounced bending in short edges and are less pronounced one in longer edges. Ideally this should be relative to the screen size.
| bendingDirection | property |
public var bendingDirection:int = 0This property describes whether all the deviations should turn left or right.
| 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.
| FlowCurveEdgeRenderer | () | constructor |
public function FlowCurveEdgeRenderer()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.
|
| BEND_LEFT | constant |
public static const BEND_LEFT:int = 0constant to describe that the bending should be left.
| BEND_RIGHT | constant |
public static const BEND_RIGHT:int = 1constant to describe that the bending should be right.