| Package | org.un.flex.graphLayout.layout |
| Class | public class DirectPlacementLayouter |
| Inheritance | DirectPlacementLayouter BaseLayouter |
| Implements | ILayoutAlgorithm |
| Property | Defined by | ||
|---|---|---|---|
![]() | animInProgress : Boolean
Indicator if currently an animation sequence is still
in progress.
| BaseLayouter | |
![]() | autoFitEnabled : Boolean | BaseLayouter | |
| centeredLayout : Boolean
defines if the vgraph's center offset should be applied.
| DirectPlacementLayouter | ||
![]() | disableAnimation : Boolean
If set to true, animation is disabled and direct
node location setting occurs (instantaneously).
| BaseLayouter | |
![]() | 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 | |
![]() | layoutChanged : Boolean | BaseLayouter | |
![]() | linkLength : Number
This is a NOP in the BaseLayouter class.
| BaseLayouter | |
| relativeHeight : Number
Access the relative height for the y coordinates specified.
| DirectPlacementLayouter | ||
| relativeOrigin : Point
Access the relative origin, which will result in an offset for
each coordinate, default is (0,0);
| DirectPlacementLayouter | ||
| relativeWidth : Number
Access the relative width for the x coordinates specified.
| DirectPlacementLayouter | ||
![]() | 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 | ||
|---|---|---|---|
|
DirectPlacementLayouter(vg:IVisualGraph = null)
The constructor only initialises some data structures.
| DirectPlacementLayouter | ||
![]() |
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.
| DirectPlacementLayouter | ||
![]() |
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.
| DirectPlacementLayouter | ||
| centeredLayout | property |
public var centeredLayout:Booleandefines if the vgraph's center offset should be applied. Set it to true if your coordinates assume a centered origin and you place them all around the center.
The default value is false.
| relativeHeight | property |
relativeHeight:Number [read-write]Access the relative height for the y coordinates specified. Default is 1000.
Implementation public function get relativeHeight():Number
public function set relativeHeight(value:Number):void
| relativeOrigin | property |
relativeOrigin:Point [read-write]Access the relative origin, which will result in an offset for each coordinate, default is (0,0);
Implementation public function get relativeOrigin():Point
public function set relativeOrigin(value:Point):void
| relativeWidth | property |
relativeWidth:Number [read-write]Access the relative width for the x coordinates specified. Default is 1000.
Implementation public function get relativeWidth():Number
public function set relativeWidth(value:Number):void
| DirectPlacementLayouter | () | constructor |
public function DirectPlacementLayouter(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.