Packagecom.yworks.yfiles.layout.tree
Classpublic class TreeComponentLayouter
InheritanceTreeComponentLayouter Inheritance YObject Inheritance Object
Implements LayoutStage

This stage can be used to do mix layouts for tree-like subgraph structures and the non-tree like rest of a graph.



Public Properties
 PropertyDefined By
  coreLayouter : Layouter
Specifies the core layouter.
TreeComponentLayouter
  orientationOptimizationActive : Boolean
Getter: Returns true if this layouter tries to improve tree component placement by changing the components orientation and false otherwise.
TreeComponentLayouter
  treeComponentCoreLayouter : Layouter
Specifies the core layouter used for tree components.
TreeComponentLayouter
Public Methods
 MethodDefined By
  
TreeComponentLayouter(treeCoreLayouter:Layouter, init:Boolean = true)
Creates a new instance of TreeComponentLayouter using the specified layouter for laying out the subtrees.
TreeComponentLayouter
  
canLayout(graph:LayoutGraph):Boolean
Returns true iff the given graph can be laid out by this algorithm.
TreeComponentLayouter
  
doLayout(graph:LayoutGraph):void
Assigns a new graph layout to the given layout graph.
TreeComponentLayouter
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
TreeComponentLayouter
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance of TreeComponentLayouter using the specified layouter for laying out the subtrees.
TreeComponentLayouter
Protected Methods
 MethodDefined By
  
Called by doLayout() to delegate to the coreLayouter, adding the dummy provider to the graph instance.
TreeComponentLayouter
  
initTreeComponentLayouter(treeCoreLayouter:Layouter):void
Initializes this object.
TreeComponentLayouter
Public Constants
 ConstantDefined By
  DUMMY_NODE_DPKEY : Object = y.layout.tree.TreeComponentLayouter.DUMMY_NODE_DPKEY
[static] During the main run of the layout dummy nodes can be identified by looking at the value of the registered DataProvider which can be obtained from the graph using this key.
TreeComponentLayouter
Property Detail
coreLayouterproperty
coreLayouter:Layouter

Specifies the core layouter.


Implementation
    public function get coreLayouter():Layouter
    public function set coreLayouter(value:Layouter):void
orientationOptimizationActiveproperty 
orientationOptimizationActive:Boolean

Getter: Returns true if this layouter tries to improve tree component placement by changing the components orientation and false otherwise.

Setter: Specifies whether this layouter should try to improve tree component placement by changing the components orientation.


Implementation
    public function get orientationOptimizationActive():Boolean
    public function set orientationOptimizationActive(value:Boolean):void
treeComponentCoreLayouterproperty 
treeComponentCoreLayouter:Layouter

Specifies the core layouter used for tree components.


Implementation
    public function get treeComponentCoreLayouter():Layouter
    public function set treeComponentCoreLayouter(value:Layouter):void
Constructor Detail
TreeComponentLayouter()Constructor
public function TreeComponentLayouter(treeCoreLayouter:Layouter, init:Boolean = true)

Creates a new instance of TreeComponentLayouter using the specified layouter for laying out the subtrees.

Parameters
treeCoreLayouter:Layouter
 
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.
Method Detail
canLayout()method
public function canLayout(graph:LayoutGraph):Boolean

Returns true iff the given graph can be laid out by this algorithm. Calling doLayout with the given graph as its argument will only success if this method returns true.

Parameters

graph:LayoutGraph

Returns
Boolean
doLayout()method 
public function doLayout(graph:LayoutGraph):void

Assigns a new graph layout to the given layout graph.

Parameters

graph:LayoutGraph

doLayoutUsingDummies()method 
protected function doLayoutUsingDummies(graph:LayoutGraph, dummyDp:DataProvider):void

Called by doLayout() to delegate to the coreLayouter, adding the dummy provider to the graph instance.

Parameters

graph:LayoutGraph
 
dummyDp:DataProvider

See also

getClass()method 
override public function getClass():Class

Returns
Class
initTreeComponentLayouter()method 
protected final function initTreeComponentLayouter(treeCoreLayouter:Layouter):void

Initializes this object. See the documentation of the corresponding factory method newTreeComponentLayouter() for details.

Parameters

treeCoreLayouter:Layouter

See also

newTreeComponentLayouter()method 
public static function newTreeComponentLayouter(treeCoreLayouter:Layouter):TreeComponentLayouter

Creates a new instance of TreeComponentLayouter using the specified layouter for laying out the subtrees.

Parameters

treeCoreLayouter:Layouter

Returns
TreeComponentLayouter
Constant Detail
DUMMY_NODE_DPKEYConstant
public static const DUMMY_NODE_DPKEY:Object = y.layout.tree.TreeComponentLayouter.DUMMY_NODE_DPKEY

During the main run of the layout dummy nodes can be identified by looking at the value of the registered DataProvider which can be obtained from the graph using this key.