Package | com.yworks.yfiles.layout.hierarchic |
Class | public class TreeDrawer |
Inheritance | TreeDrawer AbstractDrawer YObject Object |
Property | Defined By | ||
---|---|---|---|
alternativeDrawer : Drawer [write-only]
Sets the drawer, which is called when graph is not a tree. | TreeDrawer | ||
dummyMap : NodeMap [write-only]
Gives the drawer the opportunity to distinguish between dummy nodes and real ones. | AbstractDrawer | ||
edgeLengthKey : Object [write-only]
Set the key to the data provider, which stores the length of the edges. | AbstractDrawer | ||
graphInternal : LayoutGraph [read-only] | AbstractDrawer | ||
minimalEdgeDistance : Number [override] | TreeDrawer | ||
minimalLayerDistance : Number [override] | TreeDrawer | ||
minimalMultiEdgeDistance : Number [override] | TreeDrawer | ||
minimalNodeDistance : Number [override] | TreeDrawer |
Method | Defined By | ||
---|---|---|---|
TreeDrawer(init:Boolean = true) | TreeDrawer | ||
Binds the specified graph to this drawer and calls the abstract method assignFinalCoordinates()
| AbstractDrawer | ||
assignYCoords(graph:LayoutGraph, layerLists:Vector.<Object>):void
Assign the y coordinates to the nodes respecting the minimal layer distance. | AbstractDrawer | ||
assignYCoords2(graph:LayoutGraph, layers:Vector.<Object>):void
Assign the y coordinates to the nodes respecting the minimal layer distance. | AbstractDrawer | ||
equals(o:Object):Boolean | YObject | ||
getBottomBorder(v:Node):Number
Returns the height of the bottom border of the given node. | AbstractDrawer | ||
getBottomHalf(v:Node):Number
Returns the height of the border-obeying bottom half of the node,
| AbstractDrawer | ||
getBottomY(v:Node):Number
Returns the border obeying bottom y-coordinate of the given node. | AbstractDrawer | ||
getClass():Class [override] | TreeDrawer | ||
getFullHeight(v:Node):Number
Returns the border obeying full height of the given node. | AbstractDrawer | ||
getFullWidth(v:Node):Number
Returns the border obeying full width of the given node. | AbstractDrawer | ||
getLeftBorder(v:Node):Number
Returns the width of the left border of the given node. | AbstractDrawer | ||
getLeftHalf(v:Node):Number
Returns the width of the border-obeying left half of the node,
| AbstractDrawer | ||
Returns the border obeying left x-coordinate of the given node. | AbstractDrawer | ||
getRightBorder(v:Node):Number
Returns the width of the right border of the given node. | AbstractDrawer | ||
getRightHalf(v:Node):Number
Returns the width of the border-obeying right half of the node,
| AbstractDrawer | ||
Returns the border obeying right x-coordinate of the given node. | AbstractDrawer | ||
getTopBorder(v:Node):Number
Returns the height of the top border of the given node. | AbstractDrawer | ||
getTopHalf(v:Node):Number
Returns the height of the border-obeying top half of the node,
| AbstractDrawer | ||
Returns the border obeying top y-coordinate of the given node. | AbstractDrawer | ||
hashCode():int | YObject | ||
[static] | TreeDrawer |
Method | Defined By | ||
---|---|---|---|
assignFinalCoordinates(layerLists:Vector.<Object>, layerID:DataProvider):void [override] | TreeDrawer | ||
dispose():void
Frees allocated resources after the drawer is finished. | AbstractDrawer | ||
getDistanceToNextNode(v:Node):Number
Returns the minimal distance between the right border of the given node and the left border of its right hand side neighbor in the layer. | AbstractDrawer | ||
initAbstractDrawer():void | AbstractDrawer | ||
initializeDistancesToNextNode(layerLists:Vector.<Object>):void
Initializes the minimal distances between the right border of a node and the left border of its right hand side neighbor in a layer. | AbstractDrawer | ||
initTreeDrawer():void
Initializes this object. | TreeDrawer |
alternativeDrawer | property |
alternativeDrawer:Drawer
[write-only] Sets the drawer, which is called when graph is not a tree.
public function set alternativeDrawer(value:Drawer):void
minimalEdgeDistance | property |
minimalEdgeDistance:Number
[override] public function get minimalEdgeDistance():Number
public function set minimalEdgeDistance(value:Number):void
minimalLayerDistance | property |
minimalLayerDistance:Number
[override] public function get minimalLayerDistance():Number
public function set minimalLayerDistance(value:Number):void
minimalMultiEdgeDistance | property |
minimalMultiEdgeDistance:Number
[override] public function get minimalMultiEdgeDistance():Number
public function set minimalMultiEdgeDistance(value:Number):void
minimalNodeDistance | property |
minimalNodeDistance:Number
[override] public function get minimalNodeDistance():Number
public function set minimalNodeDistance(value:Number):void
TreeDrawer | () | Constructor |
public function TreeDrawer(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.
|
assignFinalCoordinates | () | method |
override protected function assignFinalCoordinates(layerLists:Vector.<Object>, layerID:DataProvider):void
Parameters
layerLists:Vector.<Object> | |
layerID:DataProvider |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initTreeDrawer | () | method |
protected final function initTreeDrawer():void
Initializes this object. See the documentation of the corresponding factory method newTreeDrawer()
for details.
See also
newTreeDrawer | () | method |