Package | com.yworks.yfiles.layout.hierarchic |
Class | public class AbstractDrawer |
Inheritance | AbstractDrawer YObject Object |
Implements | Drawer |
Subclasses | LinearSegmentsDrawer, MedianLinearSegmentDrawer, PendularDrawer, PolylineDrawer, SimplexDrawer, TreeDrawer |
Property | Defined By | ||
---|---|---|---|
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
Specifies the minimal distance between two edges in the same layer. | AbstractDrawer | ||
minimalLayerDistance : Number
Specifies the minimal distance between two layers. | AbstractDrawer | ||
minimalMultiEdgeDistance : Number
Specifies the minimal distance between two edges sharing source/target in the same layer. | AbstractDrawer | ||
minimalNodeDistance : Number
Specifies the minimal distance between two nodes in the same layer. | AbstractDrawer |
Property | Defined By | ||
---|---|---|---|
distanceToNextNode : NodeMap
Stores the minimal distance between the right border of a node and the left border of its right hand side neighbor in a layer. | AbstractDrawer | ||
_dummyMap : NodeMap
See dummyMap
| AbstractDrawer | ||
_edgeLengthKey : Object
The key to the data provider, which stores the length of the edges. | AbstractDrawer | ||
graph : LayoutGraph
The graph bound to this drawer instance. | AbstractDrawer | ||
_minimalEdgeDistance : Number
The minimal distance between two edges in the same layer. | AbstractDrawer | ||
_minimalLayerDistance : Number
The minimal distance between two layers. | AbstractDrawer | ||
_minimalMultiEdgeDistance : Number
The minimal distance between two edges sharing source/target in the same layer. | AbstractDrawer | ||
_minimalNodeDistance : Number
The minimal distance between two nodes in the same layer. | AbstractDrawer |
Method | Defined By | ||
---|---|---|---|
AbstractDrawer(init:Boolean = true) | AbstractDrawer | ||
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] | AbstractDrawer | ||
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 |
Method | Defined By | ||
---|---|---|---|
assignFinalCoordinates(layerLists:Vector.<Object>, layerID:DataProvider):void
Overwrite this method to assign the final coordinates to the objects of he graph. | AbstractDrawer | ||
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 |
_dummyMap | property |
_edgeLengthKey | property |
protected var _edgeLengthKey:Object
The key to the data provider, which stores the length of the edges.
_minimalEdgeDistance | property |
protected var _minimalEdgeDistance:Number
The minimal distance between two edges in the same layer.
_minimalLayerDistance | property |
protected var _minimalLayerDistance:Number
The minimal distance between two layers.
_minimalMultiEdgeDistance | property |
protected var _minimalMultiEdgeDistance:Number
The minimal distance between two edges sharing source/target in the same layer.
_minimalNodeDistance | property |
protected var _minimalNodeDistance:Number
The minimal distance between two nodes in the same layer.
distanceToNextNode | property |
protected var distanceToNextNode:NodeMap
Stores the minimal distance between the right border of a node and the left border of its right hand side neighbor in a layer.
dummyMap | property |
dummyMap:NodeMap
[write-only]
Gives the drawer the opportunity to distinguish between dummy nodes and real ones.
dummy stores the original edge for each dummy node or null
for real nodes.
public function set dummyMap(value:NodeMap):void
edgeLengthKey | property |
edgeLengthKey:Object
[write-only] Set the key to the data provider, which stores the length of the edges. Remark: Edges, which are split in the first phase do no longer supply lengths. This should not be to critical as they span at least two layers and are so hopefully long enough.
public function set edgeLengthKey(value:Object):void
graph | property |
protected var graph:LayoutGraph
The graph bound to this drawer instance.
graphInternal | property |
graphInternal:LayoutGraph
[read-only] public function get graphInternal():LayoutGraph
minimalEdgeDistance | property |
minimalEdgeDistance:Number
Specifies the minimal distance between two edges in the same layer.
public function get minimalEdgeDistance():Number
public function set minimalEdgeDistance(value:Number):void
minimalLayerDistance | property |
minimalLayerDistance:Number
Specifies the minimal distance between two layers.
public function get minimalLayerDistance():Number
public function set minimalLayerDistance(value:Number):void
minimalMultiEdgeDistance | property |
minimalMultiEdgeDistance:Number
Specifies the minimal distance between two edges sharing source/target in the same layer.
public function get minimalMultiEdgeDistance():Number
public function set minimalMultiEdgeDistance(value:Number):void
minimalNodeDistance | property |
minimalNodeDistance:Number
Specifies the minimal distance between two nodes in the same layer.
public function get minimalNodeDistance():Number
public function set minimalNodeDistance(value:Number):void
AbstractDrawer | () | Constructor |
public function AbstractDrawer(init:Boolean = true)
init:Boolean (default = true )
|
assignCoordinates | () | method |
public function assignCoordinates(g:LayoutGraph, layerLists:Vector.<Object>, layerID:DataProvider):void
Binds the specified graph to this drawer and calls the abstract method assignFinalCoordinates()
Parameters
g:LayoutGraph | |
layerLists:Vector.<Object> | |
layerID:DataProvider |
See also
assignFinalCoordinates | () | method |
protected function assignFinalCoordinates(layerLists:Vector.<Object>, layerID:DataProvider):void
Overwrite this method to assign the final coordinates to the objects of he graph.
Parameters
layerLists:Vector.<Object> | |
layerID:DataProvider |
assignYCoords | () | method |
public function assignYCoords(graph:LayoutGraph, layerLists:Vector.<Object>):void
Assign the y coordinates to the nodes respecting the minimal layer distance.
Parameters
graph:LayoutGraph | |
layerLists:Vector.<Object> |
assignYCoords2 | () | method |
public function assignYCoords2(graph:LayoutGraph, layers:Vector.<Object>):void
Assign the y coordinates to the nodes respecting the minimal layer distance.
Parameters
graph:LayoutGraph | |
layers:Vector.<Object> |
dispose | () | method |
protected function dispose():void
Frees allocated resources after the drawer is finished.
getBottomBorder | () | method |
public function getBottomBorder(v:Node):Number
Returns the height of the bottom border of the given node.
Parameters
v:Node |
Number |
getBottomHalf | () | method |
public function getBottomHalf(v:Node):Number
Returns the height of the border-obeying bottom half of the node,
Parameters
v:Node |
Number |
getBottomY | () | method |
public function getBottomY(v:Node):Number
Returns the border obeying bottom y-coordinate of the given node.
Parameters
v:Node |
Number |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getDistanceToNextNode | () | method |
protected function 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. Node minimal node distances are constructed by using the values provided by the data providers that are registered with the input graph under the keys com.yworks.yfiles.layout.hierarchic.DrawerKeys.NODE_DISTANCE, com.yworks.yfiles.layout.hierarchic.DrawerKeys.NODE_BORDER_LEFT and com.yworks.yfiles.layout.hierarchic.DrawerKeys.NODE_BORDER_RIGHT.
Parameters
v:Node |
Number |
See also
getFullHeight | () | method |
public function getFullHeight(v:Node):Number
Returns the border obeying full height of the given node.
Parameters
v:Node |
Number |
getFullWidth | () | method |
public function getFullWidth(v:Node):Number
Returns the border obeying full width of the given node.
Parameters
v:Node |
Number |
getLeftBorder | () | method |
public function getLeftBorder(v:Node):Number
Returns the width of the left border of the given node.
Parameters
v:Node |
Number |
getLeftHalf | () | method |
public function getLeftHalf(v:Node):Number
Returns the width of the border-obeying left half of the node,
Parameters
v:Node |
Number |
getLeftX | () | method |
public function getLeftX(v:Node):Number
Returns the border obeying left x-coordinate of the given node.
Parameters
v:Node |
Number |
getRightBorder | () | method |
public function getRightBorder(v:Node):Number
Returns the width of the right border of the given node.
Parameters
v:Node |
Number |
getRightHalf | () | method |
public function getRightHalf(v:Node):Number
Returns the width of the border-obeying right half of the node,
Parameters
v:Node |
Number |
getRightX | () | method |
public function getRightX(v:Node):Number
Returns the border obeying right x-coordinate of the given node.
Parameters
v:Node |
Number |
getTopBorder | () | method |
public function getTopBorder(v:Node):Number
Returns the height of the top border of the given node.
Parameters
v:Node |
Number |
getTopHalf | () | method |
public function getTopHalf(v:Node):Number
Returns the height of the border-obeying top half of the node,
Parameters
v:Node |
Number |
getTopY | () | method |
public function getTopY(v:Node):Number
Returns the border obeying top y-coordinate of the given node.
Parameters
v:Node |
Number |
initAbstractDrawer | () | method |
protected final function initAbstractDrawer():void
initializeDistancesToNextNode | () | method |
protected function 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.
Parameters
layerLists:Vector.<Object> |
See also