Package | com.yworks.yfiles.layout.tree |
Class | public class AbstractNodePlacer |
Inheritance | AbstractNodePlacer YObject Object |
Implements | NodePlacer, Clonable |
Subclasses | ARNodePlacer, DefaultNodePlacer, TreeDrawer_HierarchicTreePlacer |
See also
Property | Defined By | ||
---|---|---|---|
graph : LayoutGraph
The graph instance this class is working on
| AbstractNodePlacer |
Method | Defined By | ||
---|---|---|---|
AbstractNodePlacer(init:Boolean = true)
Creates a new instance of AbstractNodePlacer
| AbstractNodePlacer | ||
clone():Object
Overwritten to support cloning. | AbstractNodePlacer | ||
Creates an optional Processor for pre- and post-processing. | AbstractNodePlacer | ||
This method initializes internal data structures and then uses the abstract method to determine the child node connector directions. | AbstractNodePlacer | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | AbstractNodePlacer | ||
hashCode():int | YObject | ||
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 |
Method | Defined By | ||
---|---|---|---|
cloneImpl(o:Object):void | AbstractNodePlacer | ||
determineChildConnector(child:Node):int
This method must be implemented by subclasses. | AbstractNodePlacer | ||
Convenience method that queries the DataProvider for the shape of a single node as a SubtreeShape instance. | AbstractNodePlacer | ||
Convenience method that queries the DataProvider for a SubtreeShape. | AbstractNodePlacer | ||
initAbstractNodePlacer():void | AbstractNodePlacer | ||
The main placeSubtree method that must be implemented by subclasses. | AbstractNodePlacer |
graph | property |
protected var graph:LayoutGraph
The graph instance this class is working on
AbstractNodePlacer | () | Constructor |
public function AbstractNodePlacer(init:Boolean = true)
Creates a new instance of AbstractNodePlacer
Parametersinit: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.
|
clone | () | method |
public function clone():Object
Overwritten to support cloning.
ReturnsObject — an exact copy of this instance
|
cloneImpl | () | method |
protected function cloneImpl(o:Object):void
Parameters
o:Object |
createProcessor | () | method |
public function createProcessor(layouter:GenericTreeLayouter, graph:LayoutGraph, currentRoot:Node):Processor
Creates an optional Processor for pre- and post-processing.
Parameters
layouter:GenericTreeLayouter | |
graph:LayoutGraph — the actual graph
| |
currentRoot:Node — the actual root node for this node placer
|
Processor — a Processor or null
|
determineChildConnector | () | method |
protected function determineChildConnector(child:Node):int
This method must be implemented by subclasses. It assigns a connector shape direction to each child.
Parameters
child:Node — the child node
|
int — a byte constant as defined in the com.yworks.yfiles.layout.tree.NodePlacer interface
|
See also
determineChildConnectors | () | method |
public function 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.
Parameters
localRoot:Node — the local root node
| |
connectorMap:DataMap — the map that will be used to store the values
|
See also
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getNodeShape | () | method |
protected function getNodeShape(node:Node):GenericTreeLayouter_SubtreeShape
Convenience method that queries the DataProvider for the shape of a single node as a SubtreeShape instance. This instance can be used to modify it and return it in the main placeSubtree method. This method can be called during the execution of placeSubtreeCore()
Parameters
node:Node — the node whose shape will be returned in the form of a SubtreeShape instance
|
GenericTreeLayouter_SubtreeShape — an instance that can be modified
|
See also
getSubtreeShape | () | method |
protected function getSubtreeShape(node:Node):GenericTreeLayouter_SubtreeShape
Convenience method that queries the DataProvider for a SubtreeShape. This method can be called during the execution of placeSubtreeCore()
Parameters
node:Node — the root node whose subtree shape will be returned in the form of a SubtreeShape instance
|
GenericTreeLayouter_SubtreeShape — an instance that can be modified
|
See also
initAbstractNodePlacer | () | method |
protected final function initAbstractNodePlacer():void
placeSubtree | () | method |
public function 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.
Parameters
nodeShapeProvider:DataProvider | |
subtreeShapeProvider:DataProvider | |
graph:LayoutGraph | |
localRoot:Node | |
parentConnectorDirection:int |
GenericTreeLayouter_SubtreeShape |
See also
placeSubtreeCore | () | method |
protected function placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):GenericTreeLayouter_SubtreeShape
The main placeSubtree method that must be implemented by subclasses.
Parameters
localRoot:Node — the local root node
| |
parentConnectorDirection:int — the direction of the connector shape
|
GenericTreeLayouter_SubtreeShape — a SubtreeShape instance that describes the shape of the whole subtree
|