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

This is an edge renderer for Hyperbolic2DLayout, which draws the edges as curved lines from one node to another. The radius of the curve is dependent on the location of the two points and is computed by the Hyperbolic (Poincare) projector.



Public Methods
 MethodDefined by
  
Constructor of the Edge Renderer that sets the projector
HyperbolicEdgeRenderer
  
draw(g:Graphics, edge:IEdge, displayLabel:Boolean = false):void
The draw function, i.e.
HyperbolicEdgeRenderer
Constructor detail
HyperbolicEdgeRenderer()constructor
public function HyperbolicEdgeRenderer(projector:IProjector)

Constructor of the Edge Renderer that sets the projector

Parameters
projector:IProjector
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 curved 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.