| Package | org.un.flex.graphLayout.layout |
| Class | public class HierarchicalLayouter |
| Inheritance | HierarchicalLayouter AnimatedBaseLayouter BaseLayouter |
| Implements | ILayoutAlgorithm |
| Property | Defined by | ||
|---|---|---|---|
![]() | animInProgress : Boolean
Indicator if currently an animation sequence is still
in progress.
| AnimatedBaseLayouter | |
![]() | autoFitEnabled : Boolean | BaseLayouter | |
| breadth : Number
Set the spacing between the nodes within a layer.
| HierarchicalLayouter | ||
| compareNodesFunction : Function [write-only]
| HierarchicalLayouter | ||
![]() | disableAnimation : Boolean
If set to true, animation is disabled and direct
node location setting occurs (instantaneously).
| BaseLayouter | |
| enableSiblingSpread : Boolean
Enable a spreading out of sibling nodes to
make labels more legible in some cases.
| HierarchicalLayouter | ||
![]() | graph : IGraph
Assign a Graph datastructure object to the
layouter, every layouter will need one to work
and some may allow to set it in their constructor
| BaseLayouter | |
| honorNodeSize : Boolean [write-only]
| HierarchicalLayouter | ||
| interleaveSiblings : Boolean | HierarchicalLayouter | ||
| layerMargin : int = 0 | HierarchicalLayouter | ||
![]() | layoutChanged : Boolean | BaseLayouter | |
| linkLength : Number | HierarchicalLayouter | ||
| orientation : uint
Set the orientation for the hierarchical
layouter.
| HierarchicalLayouter | ||
| siblingSpreadDistance : Number | HierarchicalLayouter | ||
![]() | vgraph : IVisualGraph
Assign a VisualGraph object to the layouter,
every layouter will need one to work, some may
also offer to set it in their constructor.
| BaseLayouter | |
| Method | Defined by | ||
|---|---|---|---|
|
HierarchicalLayouter(vg:IVisualGraph = null)
The constructor only initialises some data structures.
| HierarchicalLayouter | ||
![]() |
bgDragContinue(event:MouseEvent):void
This is a NOP for this layouter.
| BaseLayouter | |
![]() |
bgDragEvent(event:MouseEvent):void
This is a NOP for this layouter.
| BaseLayouter | |
![]() |
bgDropEvent(event:MouseEvent):void
This is a NOP for this layouter.
| BaseLayouter | |
![]() |
dragContinue(event:MouseEvent, vn:IVisualNode):void
This is a NOP for this layouter.
| BaseLayouter | |
![]() |
dragEvent(event:MouseEvent, vn:IVisualNode):void
This is a NOP for this layouter.
| BaseLayouter | |
![]() |
dropEvent(event:MouseEvent, vn:IVisualNode):void
This is a NOP for this layouter.
| BaseLayouter | |
|
layoutPass():Boolean
This main interface method computes and
and executes the new layout.
| HierarchicalLayouter | ||
![]() |
refreshInit():void
This is a NOP for this layouter.
| BaseLayouter | |
|
resetAll():void
This should reset all parameters of the layouter,
which might not be needed for all layouters, and it is
up to each layouter to do something with it.
| HierarchicalLayouter | ||
| Constant | Defined by | ||
|---|---|---|---|
![]() | ANIM_RADIAL : int = 1
constant to define the radial animation type, which
interpolates node's polar coordinates.
| AnimatedBaseLayouter | |
![]() | ANIM_STRAIGHT : int = 2
constant to define the radial animation type, which
interpolates node's polar coordinates.
| AnimatedBaseLayouter | |
![]() | DEFAULT_MARGIN : Number = 30 [static]
The default margin to be considered when using
autoFit.
| BaseLayouter | |
![]() | MINIMUM_NODE_HEIGHT : Number = 5 [static]
The default minimum node height to be used if the exact node
height cannot be determined yet.
| BaseLayouter | |
![]() | MINIMUM_NODE_WIDTH : Number = 5 [static]
The default minimum node width to be used if the exact node
height cannot be determined yet.
| BaseLayouter | |
| ORIENT_BOTTOM_UP : uint = 3 [static]
Set the orientation to this to result in a
bottom up layout.
| HierarchicalLayouter | ||
| ORIENT_LEFT_RIGHT : uint = 0 [static]
Set the orientation to this to result in a
left to right layout.
| HierarchicalLayouter | ||
| ORIENT_RIGHT_LEFT : uint = 1 [static]
Set the orientation to this to result in a
right to left layout.
| HierarchicalLayouter | ||
| ORIENT_TOP_DOWN : uint = 2 [static]
Set the orientation to this to result in a
top down layout.
| HierarchicalLayouter | ||
| breadth | property |
breadth:Number [read-write]Set the spacing between the nodes within a layer. Typical range 0 .. 100 should be ok.
Implementation public function get breadth():Number
public function set breadth(value:Number):void
| compareNodesFunction | property |
compareNodesFunction:Function [write-only]Implementation
public function set compareNodesFunction(value:Function):void
| enableSiblingSpread | property |
enableSiblingSpread:Boolean [read-write]Enable a spreading out of sibling nodes to make labels more legible in some cases.
Implementation public function get enableSiblingSpread():Boolean
public function set enableSiblingSpread(value:Boolean):void
| honorNodeSize | property |
honorNodeSize:Boolean [write-only]Implementation
public function set honorNodeSize(value:Boolean):void
| interleaveSiblings | property |
interleaveSiblings:Boolean [read-write]Implementation
public function get interleaveSiblings():Boolean
public function set interleaveSiblings(value:Boolean):void
| layerMargin | property |
public var layerMargin:int = 0
| linkLength | property |
linkLength:Number [read-write]
This property can be used as the source for data binding.
Implementation public function get linkLength():Number
public function set linkLength(value:Number):void
| orientation | property |
orientation:uint [read-write]Set the orientation for the hierarchical layouter. Available values are provided through defined constants. Use one of: HierarchicalLayouter.ORIENT_TOP_DOWN HierarchicalLayouter.ORIENT_BOTTOM_UP HierarchicalLayouter.ORIENT_LEFT_RIGHT HierarchicalLayouter.ORIENT_RIGHT_LEFT
Implementation public function get orientation():uint
public function set orientation(value:uint):void
| siblingSpreadDistance | property |
siblingSpreadDistance:Number [read-write]Implementation
public function get siblingSpreadDistance():Number
public function set siblingSpreadDistance(value:Number):void
| HierarchicalLayouter | () | constructor |
public function HierarchicalLayouter(vg:IVisualGraph = null)The constructor only initialises some data structures.
Parametersvg:IVisualGraph (default = null) |
| layoutPass | () | method |
public override function layoutPass():BooleanThis main interface method computes and and executes the new layout.
ReturnsBoolean — Currently the return value is not set or used.
|
| resetAll | () | method |
public override function resetAll():voidThis should reset all parameters of the layouter, which might not be needed for all layouters, and it is up to each layouter to do something with it. It would also stop any existing layouting loops/timers.
| ORIENT_BOTTOM_UP | constant |
public static const ORIENT_BOTTOM_UP:uint = 3Set the orientation to this to result in a bottom up layout.
| ORIENT_LEFT_RIGHT | constant |
public static const ORIENT_LEFT_RIGHT:uint = 0Set the orientation to this to result in a left to right layout.
| ORIENT_RIGHT_LEFT | constant |
public static const ORIENT_RIGHT_LEFT:uint = 1Set the orientation to this to result in a right to left layout.
| ORIENT_TOP_DOWN | constant |
public static const ORIENT_TOP_DOWN:uint = 2Set the orientation to this to result in a top down layout.