Packagecom.yworks.yfiles.layout.tree
Classpublic class DendrogramPlacer
InheritanceDendrogramPlacer Inheritance YObject Inheritance Object
Implements FromSketchNodePlacer

This is an implementation of the com.yworks.yfiles.layout.tree.NodePlacer interface that can be used to create dendrogram-like tree layouts. This placer arranges nodes from top to bottom. It arranges subtrees in such a way that all subtrees of a single local root align at their bottom border. This implementation does not support com.yworks.yfiles.layout.PortConstraint s.

See also

com.yworks.yfiles.layout.tree.NodePlacer
com.yworks.yfiles.layout.PortConstraint


Public Properties
 PropertyDefined By
  minimumRootDistance : Number
Specifies the distance between the root shape and the bus connecting all of its subtrees.
DendrogramPlacer
  minimumSubtreeDistance : Number
Specifies the distance between two adjacent subtree shapes.
DendrogramPlacer
Public Methods
 MethodDefined By
  
DendrogramPlacer(init:Boolean = true)
DendrogramPlacer
  
Creates a comparator that can be used to do a from sketch layout.
DendrogramPlacer
  
DendrogramPlacer
  
DendrogramPlacer
  
determineChildConnectors(localRoot:Node, connectorMap:DataMap):void
DendrogramPlacer
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
DendrogramPlacer
 Inherited
hashCode():int
YObject
  
[static]
DendrogramPlacer
  
placeSubtree(nodeShapeProvider:DataProvider, subtreeShapeProvider:DataProvider, graph:LayoutGraph, localRoot:Node, parentConnectorDirection:int):GenericTreeLayouter_SubtreeShape
DendrogramPlacer
Protected Methods
 MethodDefined By
  
DendrogramPlacer
Property Detail
minimumRootDistanceproperty
minimumRootDistance:Number

Specifies the distance between the root shape and the bus connecting all of its subtrees. The default is 30.


Implementation
    public function get minimumRootDistance():Number
    public function set minimumRootDistance(value:Number):void
minimumSubtreeDistanceproperty 
minimumSubtreeDistance:Number

Specifies the distance between two adjacent subtree shapes. The default is 30.


Implementation
    public function get minimumSubtreeDistance():Number
    public function set minimumSubtreeDistance(value:Number):void
Constructor Detail
DendrogramPlacer()Constructor
public function DendrogramPlacer(init:Boolean = true)



Parameters
init:Boolean (default = true)
Method Detail
createComparator()method
public function createComparator():Comparator

Creates a comparator that can be used to do a from sketch layout. If this instance is used for the root node's com.yworks.yfiles.layout.tree.GenericTreeLayouter.CHILD_COMPARATOR_DPKEY this implementation will do a from sketch layout.

Returns
Comparator — the comparator implementation to use to simulate from sketch layout

See also

createFromSketchComparator()method 
public function createFromSketchComparator():Comparator

Returns
Comparator
createProcessor()method 
public function createProcessor(layouter:GenericTreeLayouter, graph:LayoutGraph, currentRoot:Node):Processor

Parameters

layouter:GenericTreeLayouter
 
graph:LayoutGraph
 
currentRoot:Node

Returns
Processor
determineChildConnectors()method 
public function determineChildConnectors(localRoot:Node, connectorMap:DataMap):void

Parameters

localRoot:Node
 
connectorMap:DataMap

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

Returns
Class
initDendrogramPlacer()method 
protected final function initDendrogramPlacer():void

newDendrogramPlacer()method 
public static function newDendrogramPlacer():DendrogramPlacer

Returns
DendrogramPlacer
placeSubtree()method 
public function placeSubtree(nodeShapeProvider:DataProvider, subtreeShapeProvider:DataProvider, graph:LayoutGraph, localRoot:Node, parentConnectorDirection:int):GenericTreeLayouter_SubtreeShape

Parameters

nodeShapeProvider:DataProvider
 
subtreeShapeProvider:DataProvider
 
graph:LayoutGraph
 
localRoot:Node
 
parentConnectorDirection:int

Returns
GenericTreeLayouter_SubtreeShape