Package | com.yworks.yfiles.layout.tree |
Class | public class AbstractRotatableNodePlacer |
Inheritance | AbstractRotatableNodePlacer YObject Object |
Implements | FromSketchNodePlacer |
Subclasses | AssistantPlacer, BusPlacer, DelegatingNodePlacer, DoubleLinePlacer, FreePlacer, GridNodePlacer, LayeredNodePlacer, LeftRightPlacer, SimpleNodePlacer |
See also
Property | Defined By | ||
---|---|---|---|
modificationMatrix : AbstractRotatableNodePlacer_Matrix [read-only]
The actual modification matrix
| AbstractRotatableNodePlacer | ||
spacing : Number
Specifies the spacing between subtrees this NodePlacer is arranging. | AbstractRotatableNodePlacer |
Property | Defined By | ||
---|---|---|---|
createdChildren : List
List containing the created children
| AbstractRotatableNodePlacer | ||
graph : LayoutGraph
The graph instance this class is working on
| AbstractRotatableNodePlacer | ||
nodeShapeProvider : DataProvider
The actual node shape provider
| AbstractRotatableNodePlacer | ||
_spacing : Number
This is the "default" spacing for the different move operations. | AbstractRotatableNodePlacer | ||
subtreeShapeProvider : DataProvider
The actual subtree shape provider
| AbstractRotatableNodePlacer |
Method | Defined By | ||
---|---|---|---|
AbstractRotatableNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix, init:Boolean = true)
Default constructor. | AbstractRotatableNodePlacer | ||
AbstractRotatableNodePlacer | |||
AbstractRotatableNodePlacer | |||
Creates an optional Processor for pre- and post-processing. | AbstractRotatableNodePlacer | ||
This method initializes internal data structures, then uses the abstract method determineChildConnector() to determine the child node connector directions. | AbstractRotatableNodePlacer | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | AbstractRotatableNodePlacer | ||
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. | AbstractRotatableNodePlacer | ||
[static]
Translates a "real world point" to a "model point"
| AbstractRotatableNodePlacer |
Method | Defined By | ||
---|---|---|---|
createRootNodeShape(node:Node):SubtreeShapeRotated
Convenience method that queries the DataProvider for the shape of a single node as a SubtreeShape instance. | AbstractRotatableNodePlacer | ||
createSubtreeShape(node:Node):SubtreeShapeRotated
Convenience method that queries the DataProvider for a SubtreeShape. | AbstractRotatableNodePlacer | ||
determineChildConnector(child:Node):int
This method must be implemented by subclasses. | AbstractRotatableNodePlacer | ||
Lookup method to get the PortConstraint for the local root translated. | AbstractRotatableNodePlacer | ||
Translates the absolute source point of the given edge to the "view coordinates" (translated by the modification matrix)
| AbstractRotatableNodePlacer | ||
initAbstractRotatableNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix):void | AbstractRotatableNodePlacer | ||
placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):SubtreeShapeRotated
This method must be implemented by subclasses. | AbstractRotatableNodePlacer | ||
translateDirectionToModel(realDirection:int):int
Translates a "real" direction into a directionModel direction
| AbstractRotatableNodePlacer | ||
translateDirectionToReal(modelDirection:int):int
Translates a modelDirectionModel into the "real" directionModel
| AbstractRotatableNodePlacer |
_spacing | property |
protected var _spacing:Number
This is the "default" spacing for the different move operations.
createdChildren | property |
protected var createdChildren:List
List containing the created children
graph | property |
protected var graph:LayoutGraph
The graph instance this class is working on
modificationMatrix | property |
modificationMatrix:AbstractRotatableNodePlacer_Matrix
[read-only] The actual modification matrix
public function get modificationMatrix():AbstractRotatableNodePlacer_Matrix
nodeShapeProvider | property |
protected var nodeShapeProvider:DataProvider
The actual node shape provider
spacing | property |
spacing:Number
Specifies the spacing between subtrees this NodePlacer
is arranging.
public function get spacing():Number
public function set spacing(value:Number):void
subtreeShapeProvider | property |
protected var subtreeShapeProvider:DataProvider
The actual subtree shape provider
AbstractRotatableNodePlacer | () | Constructor |
public function AbstractRotatableNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix, init:Boolean = true)
Default constructor. Instantiates a new instance with the given modification matrix.
ParametersmodificationMatrix:AbstractRotatableNodePlacer_Matrix — the translation for the NodePlacer
| |
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.
|
createComparator | () | method |
createFromSketchComparator | () | method |
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
|
createRootNodeShape | () | method |
protected function createRootNodeShape(node:Node):SubtreeShapeRotated
Convenience method that queries the DataProvider for the shape of a single node as a SubtreeShape instance. This instance can be used to modify and return it in the main placeSubtree method. This method can only be called during the execution of placeSubtreeCore()
Parameters
node:Node — the node whose shape will be returned in the form of a SubtreeShape instance
|
SubtreeShapeRotated — an instance that can be modified
|
See also
createSubtreeShape | () | method |
protected function createSubtreeShape(node:Node):SubtreeShapeRotated
Convenience method that queries the DataProvider for a SubtreeShape. This method can only 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
|
SubtreeShapeRotated — an instance that can be modified
|
See also
determineChildConnector | () | method |
protected function determineChildConnector(child:Node):int
This method must be implemented by subclasses. It is used to 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, then uses the abstract method determineChildConnector() 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 |
getPortConstraint | () | method |
protected function getPortConstraint(localRoot:Node):PortConstraint
Lookup method to get the PortConstraint for the local root translated.
Parameters
localRoot:Node — the local root
|
PortConstraint — the PortConstraint for the local root. The PortConstraint is translated based on the actual modification matrix.
|
getSourcePointAbs | () | method |
protected function getSourcePointAbs(edge:Edge):YPoint
Translates the absolute source point of the given edge to the "view coordinates" (translated by the modification matrix)
Parameters
edge:Edge — the source point for is returned
|
YPoint — the translated absolute source point for the given edge and the actual modification matrix
|
initAbstractRotatableNodePlacer | () | method |
protected final function initAbstractRotatableNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix):void
Parameters
modificationMatrix:AbstractRotatableNodePlacer_Matrix |
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):SubtreeShapeRotated
This method must be implemented by subclasses.
Parameters
localRoot:Node — the local root node
| |
parentConnectorDirection:int — the direction of the connector shape
|
SubtreeShapeRotated — a SubtreeShape instance that describes the shape of the whole subtree
|
translateDirectionToModel | () | method |
protected function translateDirectionToModel(realDirection:int):int
Translates a "real" direction into a directionModel direction
Parameters
realDirection:int — the "real" direction
|
int — the translated direction
|
translateDirectionToReal | () | method |
protected function translateDirectionToReal(modelDirection:int):int
Translates a modelDirectionModel into the "real" directionModel
Parameters
modelDirection:int — the model direction
|
int — the translated model direction
|
translatePoint | () | method |
public static function translatePoint(modificationMatrix:AbstractRotatableNodePlacer_Matrix, realWorldPoint:YPoint):YPoint
Translates a "real world point" to a "model point"
Parameters
modificationMatrix:AbstractRotatableNodePlacer_Matrix — the matrix to apply
| |
realWorldPoint:YPoint — the point with the coordinates from the real world
|
YPoint — the model point
|