Packagecom.yworks.yfiles.layout.hierarchic
Classpublic class TreeDrawer_HierarchicTreePlacer
InheritanceTreeDrawer_HierarchicTreePlacer Inheritance AbstractNodePlacer Inheritance YObject Inheritance Object

places nodes in their given layers (does not change the y coordinates) for the TREE layout style of a HierarchicLayouter.



Protected Properties
 PropertyDefined By
 Inheritedgraph : LayoutGraph
The graph instance this class is working on
AbstractNodePlacer
Public Methods
 MethodDefined By
  
TreeDrawer_HierarchicTreePlacer(minimalNodeDistance:Number, init:Boolean = true)
creates a new HierarchicTreePlacer.
TreeDrawer_HierarchicTreePlacer
  
clone():Object
[override]
TreeDrawer_HierarchicTreePlacer
 Inherited
Creates an optional Processor for pre- and post-processing.
AbstractNodePlacer
 Inherited
determineChildConnectors(localRoot:Node, connectorMap:DataMap):void
This method initializes internal data structures and then uses the abstract method to determine the child node connector directions.
AbstractNodePlacer
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
TreeDrawer_HierarchicTreePlacer
 Inherited
hashCode():int
YObject
  
[static] creates a new HierarchicTreePlacer.
TreeDrawer_HierarchicTreePlacer
 Inherited
placeSubtree(nodeShapeProvider:DataProvider, subtreeShapeProvider:DataProvider, graph:LayoutGraph, localRoot:Node, parentConnectorDirection:int):GenericTreeLayouter_SubtreeShape
This method initializes the local data structures and then delegates the work to the abstract variant.
AbstractNodePlacer
Protected Methods
 MethodDefined By
  
cloneImpl(o:Object):void
[override]
TreeDrawer_HierarchicTreePlacer
  
[override]
TreeDrawer_HierarchicTreePlacer
 Inherited
Convenience method that queries the DataProvider for the shape of a single node as a SubtreeShape instance.
AbstractNodePlacer
 Inherited
Convenience method that queries the DataProvider for a SubtreeShape.
AbstractNodePlacer
 Inherited
AbstractNodePlacer
  
initTreeDrawer_HierarchicTreePlacer(minimalNodeDistance:Number):void
Initializes this object.
TreeDrawer_HierarchicTreePlacer
  
placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):GenericTreeLayouter_SubtreeShape
[override]
TreeDrawer_HierarchicTreePlacer
Constructor Detail
TreeDrawer_HierarchicTreePlacer()Constructor
public function TreeDrawer_HierarchicTreePlacer(minimalNodeDistance:Number, init:Boolean = true)

creates a new HierarchicTreePlacer.

Parameters
minimalNodeDistance:Number — the minimal allowed distance between two nodes in the same layer
 
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
clone()method
override public function clone():Object

Returns
Object
cloneImpl()method 
override protected function cloneImpl(o:Object):void

Parameters

o:Object

determineChildConnector()method 
override protected function determineChildConnector(child:Node):int

Parameters

child:Node

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

Returns
Class
initTreeDrawer_HierarchicTreePlacer()method 
protected final function initTreeDrawer_HierarchicTreePlacer(minimalNodeDistance:Number):void

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

Parameters

minimalNodeDistance:Number

See also

newTreeDrawer_HierarchicTreePlacer()method 
public static function newTreeDrawer_HierarchicTreePlacer(minimalNodeDistance:Number):TreeDrawer_HierarchicTreePlacer

creates a new HierarchicTreePlacer.

Parameters

minimalNodeDistance:Number — the minimal allowed distance between two nodes in the same layer

Returns
TreeDrawer_HierarchicTreePlacer
placeSubtreeCore()method 
override protected function placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):GenericTreeLayouter_SubtreeShape

Parameters

localRoot:Node
 
parentConnectorDirection:int

Returns
GenericTreeLayouter_SubtreeShape