| Package | flare.vis.operator.layout |
| Class | public class NodeLinkTreeLayout |
| Inheritance | NodeLinkTreeLayout Layout Operator |
The algorithm used is that of Christoph Buchheim, Michael Jünger, and Sebastian Leipert from their research paper Improving Walker's Algorithm to Run in Linear Time, Graph Drawing 2002. This algorithm corrects performance issues in Walker's algorithm, which generalizes Reingold and Tilford's method for tidy drawings of trees to support trees with an arbitrary number of children at any given node.
| Property | Defined by | ||
|---|---|---|---|
| breadthSpacing : Number The space between siblings in the tree.
| NodeLinkTreeLayout | ||
| depthSpacing : Number The space between successive depth levels of the tree.
| NodeLinkTreeLayout | ||
![]() | enabled : Boolean Indicates if the operator is enabled or disabled.
| Operator | |
![]() | layoutAnchor : Point The layout anchor, used by some layout instances to place an
initial item or determine a focal point.
| Layout | |
![]() | layoutBounds : Rectangle The layout bounds for the layout.
| Layout | |
![]() | layoutRoot : DataSprite
The layout root, the root node for tree layouts.
| Layout | |
![]() | layoutType : String = "null" The type of layout and axes.
| Layout | |
| orientation : String The orientation of the layout.
| NodeLinkTreeLayout | ||
![]() | parameters : Object
Sets parameter values for this operator.
| Operator | |
| subtreeSpacing : Number The space between different sub-trees.
| NodeLinkTreeLayout | ||
![]() | visualization : Visualization
The visualization processed by this operator.
| Operator | |
| Method | Defined by | ||
|---|---|---|---|
|
NodeLinkTreeLayout(orientation:String, depthSpace:Number = 50, breadthSpace:Number = 5, subtreeSpace:Number = 25)
Creates a new NodeLinkTreeLayout.
| NodeLinkTreeLayout | ||
![]() |
applyParameters(op:IOperator, params:Object):void
[static]
Static method that applies parameter settings to an operator.
| Operator | |
![]() |
clearEdgePoints():void
Strips all EdgeSprites in a visualization of any control points.
| Layout | |
![]() |
Hides the axes.
| Layout | |
![]() |
operate(t:Transitioner = null):void
Performs an operation over the contents of a visualization.
| Layout | |
![]() |
setup():void
Setup method invoked whenever this operator's visualization
property is set.
| Operator | |
![]() |
Reveals the axes.
| Layout | |
![]() |
[static]
Updates all edges to be straight lines.
| Layout | |
| Method | Defined by | ||
|---|---|---|---|
|
autoAnchor():void
| NodeLinkTreeLayout | ||
|
layout():void
Calculates the spatial layout of visualized items.
| NodeLinkTreeLayout | ||
![]() |
minAngle(a1:Number, a2:Number):Number
Returns an angle value that minimizes the angular distance
between a reference angle and a target angle.
| Layout | |
| Constant | Defined by | ||
|---|---|---|---|
![]() | CARTESIAN : String = "cartesian" [static] Constant indicating Cartesian (x, y) coordinates.
| Layout | |
| PARAMS : String = "nodeLinkTreeLayoutParams" [static] Property name for storing parameters for this layout.
| NodeLinkTreeLayout | ||
![]() | POLAR : String = "polar" [static] Constant indicating polar (radius, angle) coordinates.
| Layout | |
| breadthSpacing | property |
breadthSpacing:Number [read-write]The space between siblings in the tree.
Implementation public function get breadthSpacing():Number
public function set breadthSpacing(value:Number):void
| depthSpacing | property |
depthSpacing:Number [read-write]The space between successive depth levels of the tree.
Implementation public function get depthSpacing():Number
public function set depthSpacing(value:Number):void
| orientation | property |
orientation:String [read-write]The orientation of the layout.
Implementation public function get orientation():String
public function set orientation(value:String):void
| subtreeSpacing | property |
subtreeSpacing:Number [read-write]The space between different sub-trees.
Implementation public function get subtreeSpacing():Number
public function set subtreeSpacing(value:Number):void
| NodeLinkTreeLayout | () | constructor |
public function NodeLinkTreeLayout(orientation:String, depthSpace:Number = 50, breadthSpace:Number = 5, subtreeSpace:Number = 25)Creates a new NodeLinkTreeLayout.
Parametersorientation:String — the orientation of the layout
|
|
depthSpace:Number (default = 50) — the space between depth levels in the tree
|
|
breadthSpace:Number (default = 5) — the space between siblings in the tree
|
|
subtreeSpace:Number (default = 25) — the space between different sub-trees
|
| autoAnchor | () | method |
protected override function autoAnchor():void
| layout | () | method |
protected override function layout():voidCalculates the spatial layout of visualized items. Layout operators override this method with their layout implementations.
| PARAMS | constant |
public static const PARAMS:String = "nodeLinkTreeLayoutParams"Property name for storing parameters for this layout.