Package | com.yworks.yfiles.layout.tree |
Class | public class ARTreeLayouter |
Inheritance | ARTreeLayouter CanonicMultiStageLayouter YObject Object |
Property | Defined By | ||
---|---|---|---|
aspectRatio : Number
Specifies the preferred aspect ratio for this ARTreeLayouter. | ARTreeLayouter | ||
bendDistance : Number
Specifies the preferred distance between any two bends of an edge. | ARTreeLayouter | ||
comparator : Comparator
Specifies the java.util.Comparator that will be used to sort the outgoing edges (com.yworks.yfiles.base.Node.sortOutEdges()) of each local root in the tree before they are being arranged. | ARTreeLayouter | ||
componentLayouter : LayoutStage
Specifies the LayoutStage responsible for laying out the connected components of the graph. | CanonicMultiStageLayouter | ||
componentLayouterEnabled : Boolean
Getter:
Returns whether or not ComponentLayouter is enabled. | CanonicMultiStageLayouter | ||
groupNodeHider : LayoutStage
Specifies the LayoutStage that is responsible for hiding away grouping information for the layout algorithm. | CanonicMultiStageLayouter | ||
hideGroupNodes : Boolean
Specifies whether or not to hide away group nodes before the layout begins. | CanonicMultiStageLayouter | ||
horizontalSpace : Number
Specifies the horizontal distance between adjacent nodes. | ARTreeLayouter | ||
labelLayouter : LayoutStage
Getter:
Returns the algorithm used for placing labels. | CanonicMultiStageLayouter | ||
labelLayouterEnabled : Boolean
Getter:
Returns whether or not LabelLayouter is enabled. | CanonicMultiStageLayouter | ||
layoutOrientation : int
Specifies the main layout orientation. | CanonicMultiStageLayouter | ||
orientationLayouter : LayoutStage
Specifies the LayoutStage that is responsible for changing the orientation of the computed layout. | CanonicMultiStageLayouter | ||
orientationLayouterEnabled : Boolean
Getter:
Returns whether or not the OrientationLayouter is enabled. | CanonicMultiStageLayouter | ||
parallelEdgeLayouter : LayoutStage
Getter:
Returns the LayoutStage responsible for routing parallel edges. | CanonicMultiStageLayouter | ||
parallelEdgeLayouterEnabled : Boolean
Getter:
Returns whether or not the ParallelEdgeLayouter is enabled. | CanonicMultiStageLayouter | ||
rootPlacement : Object
Getter:
Returns the desired placement of the tree's root node. | ARTreeLayouter | ||
routingPolicy : Object
Specifies the routing policy used by this ARTreeLayouter. | ARTreeLayouter | ||
selfLoopLayouter : LayoutStage
Getter:
Returns the LayoutStage used for routing Self-loops. | CanonicMultiStageLayouter | ||
selfLoopLayouterEnabled : Boolean
Getter:
Returns whether or not the SelfLoopLayouter is enabled. | CanonicMultiStageLayouter | ||
subgraphLayouter : LayoutStage
Specifies the LayoutStage that is responsible for constraining the layout process to a subgraph of the target graph. | CanonicMultiStageLayouter | ||
subgraphLayouterEnabled : Boolean
Getter:
Returns whether or not the SubgraphLayouter is enabled. | CanonicMultiStageLayouter | ||
verticalSpace : Number
Specifies the vertical distance between adjacent nodes. | ARTreeLayouter |
Property | Defined By | ||
---|---|---|---|
graph : LayoutGraph | ARTreeLayouter |
Method | Defined By | ||
---|---|---|---|
ARTreeLayouter(init:Boolean = true) | ARTreeLayouter | ||
appendStage(stage:LayoutStage):void
Appends a stage to the layout pipeline. | CanonicMultiStageLayouter | ||
Returns a layout for the given layout graph. | CanonicMultiStageLayouter | ||
Returns a layout for the given graph interface and layout. | CanonicMultiStageLayouter | ||
canLayout(graph:LayoutGraph):Boolean
Tests whether or not the given graph can be laid out by this layouter. | CanonicMultiStageLayouter | ||
canLayoutCore(graph:LayoutGraph):Boolean [override]
The core layouter can layout trees. | ARTreeLayouter | ||
doLayout(layoutGraph:LayoutGraph):void
Calculates a layout for the given graph. | CanonicMultiStageLayouter | ||
Calculates a layout for the given graph interface and layout. | CanonicMultiStageLayouter | ||
doLayoutCore(graph:LayoutGraph):void [override]
Core layout routine. | ARTreeLayouter | ||
enableOnlyCore():void
Disables all layout stages and performs only the core layouter. | CanonicMultiStageLayouter | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | ARTreeLayouter | ||
hashCode():int | YObject | ||
[static] | ARTreeLayouter | ||
prependStage(stage:LayoutStage):void
Prepends a stage to the layout pipeline. | CanonicMultiStageLayouter | ||
removeStage(stage:LayoutStage):void
Removes a LayoutStage that has been previously added by the methods appendStage() or prependStage(). | CanonicMultiStageLayouter |
Method | Defined By | ||
---|---|---|---|
checkGroupNodeSize(layout:GraphLayout, node:Object):void
This method throws an com.yworks.bridge.util.IllegalArgumentException if the width/height of the given group node object is zero. | CanonicMultiStageLayouter | ||
checkNodeSize(layout:GraphLayout, node:Object):void
This method throws an com.yworks.bridge.util.IllegalArgumentException if the width/height of the given node object is zero. | CanonicMultiStageLayouter | ||
ARTreeLayouter | |||
getAspectRatio(v:Node):Number
Returns the aspectRatio that should be used for the subtree starting at the given node. | ARTreeLayouter | ||
getRootPlacement(root:Object):Object
Returns the desired placement for the given subtree root. | ARTreeLayouter | ||
getRoutingPolicy(root:Object):Object
Returns the routing policy used by this ARTreeLayouter for the given subtree root. | ARTreeLayouter | ||
ARTreeLayouter | |||
initARTreeLayouter():void
Initializes this object. | ARTreeLayouter | ||
CanonicMultiStageLayouter |
Constant | Defined By | ||
---|---|---|---|
PLACEMENT_CORNER : Object = y.layout.tree.ARTreeLayouter.PLACEMENT_CORNER [static]
A constant value to describe the placement of the root of a subtree. | ARTreeLayouter | ||
PLACEMENT_CORNER_SIDE : Object = y.layout.tree.ARTreeLayouter.PLACEMENT_CORNER_SIDE [static]
A constant value to describe the placement of the root of a subtree. | ARTreeLayouter | ||
PLACEMENT_CORNER_TOP : Object = y.layout.tree.ARTreeLayouter.PLACEMENT_CORNER_TOP [static]
A constant value to describe the placement of the root of a subtree. | ARTreeLayouter | ||
PLACEMENT_TOP : Object = y.layout.tree.ARTreeLayouter.PLACEMENT_TOP [static]
A constant value to describe the placement of the root of a subtree. | ARTreeLayouter | ||
RATIO : Object = y.layout.tree.ARTreeLayouter.RATIO [static]
The data provider key used to specify a target aspect ratio for each subtree individually. | ARTreeLayouter | ||
ROOT_PLACEMENT : Object = y.layout.tree.ARTreeLayouter.ROOT_PLACEMENT [static]
The data provider key used to specify the placement of each subtree root individually. | ARTreeLayouter | ||
ROUTING_HORIZONTAL : Object = y.layout.tree.ARTreeLayouter.ROUTING_HORIZONTAL [static]
A constant value to describe the routing for each subtree root. | ARTreeLayouter | ||
ROUTING_POLICY : Object = y.layout.tree.ARTreeLayouter.ROUTING_POLICY [static]
The data provider key used to specify the routing policy of each subtree root individually. | ARTreeLayouter | ||
ROUTING_VERTICAL : Object = y.layout.tree.ARTreeLayouter.ROUTING_VERTICAL [static]
A constant value to describe the routing for each subtree root. | ARTreeLayouter |
aspectRatio | property |
aspectRatio:Number
Specifies the preferred aspect ratio for this ARTreeLayouter
.
public function get aspectRatio():Number
public function set aspectRatio(value:Number):void
bendDistance | property |
bendDistance:Number
Specifies the preferred distance between any two bends of an edge. Additionally, the preferred bend distance governs the distance between the first and last edges and the corresponding ports.
public function get bendDistance():Number
public function set bendDistance(value:Number):void
comparator | property |
comparator:Comparator
Specifies the java.util.Comparator that will be used to sort the outgoing edges (com.yworks.yfiles.base.Node.sortOutEdges()) of each local root in the tree before they are being arranged.
Note that the algorithm will only use the order induced by the comparator, if the nodes (or better their whole subtrees) have equal size. The default value is null
which indicates that the algorithm should use its built-in logic, only.
public function get comparator():Comparator
public function set comparator(value:Comparator):void
See also
graph | property |
protected var graph:LayoutGraph
horizontalSpace | property |
horizontalSpace:Number
Specifies the horizontal distance between adjacent nodes.
By default a value of 10
is set.
public function get horizontalSpace():Number
public function set horizontalSpace(value:Number):void
rootPlacement | property |
rootPlacement:Object
Getter: Returns the desired placement of the tree's root node. Should be one of
PLACEMENT_CORNER
is used.
Setter:
Specifies the desired placement of the tree's root node.
By default, PLACEMENT_CORNER
is used.
public function get rootPlacement():Object
public function set rootPlacement(value:Object):void
See also
routingPolicy | property |
routingPolicy:Object
Specifies the routing policy used by this ARTreeLayouter
.
Should be one of
public function get routingPolicy():Object
public function set routingPolicy(value:Object):void
See also
verticalSpace | property |
verticalSpace:Number
Specifies the vertical distance between adjacent nodes.
By default a value of 10
is set.
public function get verticalSpace():Number
public function set verticalSpace(value:Number):void
ARTreeLayouter | () | Constructor |
public function ARTreeLayouter(init:Boolean = true)
Parameters
init:Boolean (default = true ) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
canLayoutCore | () | method |
override public function canLayoutCore(graph:LayoutGraph):Boolean
The core layouter can layout trees.
Parameters
graph:LayoutGraph |
Boolean |
createBends | () | method |
protected function createBends(el:EdgeLayout, root:Node, child:Node, rootPlacement:Object, routingPolicy:Object):void
Parameters
el:EdgeLayout | |
root:Node | |
child:Node | |
rootPlacement:Object | |
routingPolicy:Object |
doLayoutCore | () | method |
override public function doLayoutCore(graph:LayoutGraph):void
Core layout routine.
Parameters
graph:LayoutGraph |
getAspectRatio | () | method |
protected function getAspectRatio(v:Node):Number
Returns the aspectRatio that should be used for the subtree starting at the given node.
Parameters
v:Node |
Number |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getRootPlacement | () | method |
protected function getRootPlacement(root:Object):Object
Returns the desired placement for the given subtree root. Should be one of
Parameters
root:Object — the subtree root.
|
Object — a symbolic constant representing the desired placement for the given subtree root.
|
See also
getRoutingPolicy | () | method |
protected function getRoutingPolicy(root:Object):Object
Returns the routing policy used by this ARTreeLayouter
for the given subtree root.
Should be one of
Parameters
root:Object — the subtree root.
|
Object — the routing policy used for the given subtree root.
|
See also
getSuccessors | () | method |
protected function getSuccessors(localRoot:Node):NodeCursor
Parameters
localRoot:Node |
NodeCursor |
initARTreeLayouter | () | method |
protected final function initARTreeLayouter():void
Initializes this object. See the documentation of the corresponding factory method newARTreeLayouter()
for details.
See also
newARTreeLayouter | () | method |
PLACEMENT_CORNER | Constant |
public static const PLACEMENT_CORNER:Object = y.layout.tree.ARTreeLayouter.PLACEMENT_CORNER
A constant value to describe the placement of the root of a subtree. When this placement is used, a subtree's root is placed in the upper left corner of the subtree bounds regarding the layout orientation (layoutOrientation).
If the root is placed entirely beside the subtree with no horizontal overlaps or entirely above the node without vertical overlaps will be determined by the layout of the subtree. The layouter tries minimize the bounds of the subtree.
See also
PLACEMENT_CORNER_SIDE | Constant |
public static const PLACEMENT_CORNER_SIDE:Object = y.layout.tree.ARTreeLayouter.PLACEMENT_CORNER_SIDE
A constant value to describe the placement of the root of a subtree. When this placement is used, a subtree's root is placed in the upper left corner of the subtree bounds regarding the layout orientation (layoutOrientation).
The root is placed entirely beside the subtree with no horizontal overlaps. This might by important if the root's height is very large while its width is small.
See also
PLACEMENT_CORNER_TOP | Constant |
public static const PLACEMENT_CORNER_TOP:Object = y.layout.tree.ARTreeLayouter.PLACEMENT_CORNER_TOP
A constant value to describe the placement of the root of a subtree. When this placement is used, a subtree's root is placed in the upper left corner of the subtree bounds regarding the layout orientation (layoutOrientation).
The root is placed entirely above the subtree with no vertical overlaps. This might by important if the root's width is very large while its height is small.
See also
PLACEMENT_TOP | Constant |
public static const PLACEMENT_TOP:Object = y.layout.tree.ARTreeLayouter.PLACEMENT_TOP
A constant value to describe the placement of the root of a subtree. When this placement is used, a subtree's root is placed above its children in relation to the layout orientation (layoutOrientation).
See also
RATIO | Constant |
public static const RATIO:Object = y.layout.tree.ARTreeLayouter.RATIO
The data provider key used to specify a target aspect ratio for each subtree individually.
The aspect ratio needs to be greater than 0:
If no specific ratio is defined for a subtree, the layouter uses the default aspect ratio (aspectRatio).
See also
ROOT_PLACEMENT | Constant |
public static const ROOT_PLACEMENT:Object = y.layout.tree.ARTreeLayouter.ROOT_PLACEMENT
The data provider key used to specify the placement of each subtree root individually. If no root placement is specified for one of the subtree roots, the layouter uses the default route placement (rootPlacement).
See also
ROUTING_HORIZONTAL | Constant |
public static const ROUTING_HORIZONTAL:Object = y.layout.tree.ARTreeLayouter.ROUTING_HORIZONTAL
A constant value to describe the routing for each subtree root. When this routing is applied to a subtree, the children will be placed next to each other in direction of the layout orientation (layoutOrientation) with the edges connecting to in flow direction.
See also
ROUTING_POLICY | Constant |
public static const ROUTING_POLICY:Object = y.layout.tree.ARTreeLayouter.ROUTING_POLICY
The data provider key used to specify the routing policy of each subtree root individually. The children in a subtree are arranged either horizontal or vertical. The edges are routed to the top of the child nodes or at the side, respectively. Directions depend on the layout orientation (layoutOrientation) and refer to com.yworks.yfiles.layout.LayoutOrientation.TOP_TO_BOTTOM in this case.
If no specific routing policy is specified for a subtree root, the default routing policy (routingPolicy) is used.
See also
ROUTING_VERTICAL | Constant |
public static const ROUTING_VERTICAL:Object = y.layout.tree.ARTreeLayouter.ROUTING_VERTICAL
A constant value to describe the routing for each subtree root. When this routing is applied to a subtree, the children will be placed above each other in direction of the layout orientation (layoutOrientation) with the edges connecting orthogonal to the flow direction.
See also