Package | com.yworks.yfiles.layout.tree |
Class | public class DelegatingNodePlacer |
Inheritance | DelegatingNodePlacer AbstractRotatableNodePlacer YObject Object |
NodePlacer
s.
Property | Defined By | ||
---|---|---|---|
modificationMatrix : AbstractRotatableNodePlacer_Matrix [read-only]
The actual modification matrix
| AbstractRotatableNodePlacer | ||
orientation : int
Specifies the orientation according to which node shapes are aligned by this placer. | DelegatingNodePlacer | ||
placerLowerRight : NodePlacer [read-only]
Returns the NodePlacer that is used to layout the nodes on the "lower right"
| DelegatingNodePlacer | ||
placerUpperLeft : NodePlacer [read-only]
Returns the NodePlacer that is used to layout the nodes on the "upper left"
| DelegatingNodePlacer | ||
spacing : Number
Specifies the spacing between subtrees this NodePlacer is arranging. | AbstractRotatableNodePlacer |
Method | Defined By | ||
---|---|---|---|
DelegatingNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix, placerUpperLeft:NodePlacer, placerLowerRight:NodePlacer, init:Boolean = true)
Creates a new instance using the given modification matrix an the node placers "this" delegates to. | DelegatingNodePlacer | ||
AbstractRotatableNodePlacer | |||
AbstractRotatableNodePlacer | |||
[override]
Creates a processor that partitions child nodes of the specified root node into two subsets, one to be arranged by the "upper left" NodePlacer and one to be arranged by the "lower right" NodePlacer. | DelegatingNodePlacer | ||
[override] | DelegatingNodePlacer | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | DelegatingNodePlacer | ||
hashCode():int | YObject | ||
newDelegatingNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix, placerUpperLeft:NodePlacer, placerLowerRight:NodePlacer):DelegatingNodePlacer [static]
Creates a new instance using the given modification matrix an the node placers "this" delegates to. | DelegatingNodePlacer | ||
placeSubtree(nodeShapeProvider:DataProvider, subtreeShapeProvider:DataProvider, graph:LayoutGraph, localRoot:Node, parentConnectorDirection:int):GenericTreeLayouter_SubtreeShape [override]
Places the shapes of the children using the two node placers getUpperLeftChildren() and getLowerRightChildren(). | DelegatingNodePlacer | ||
[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 [override] | DelegatingNodePlacer | ||
Determines the lower right children of the specified root node. | DelegatingNodePlacer | ||
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 | ||
Determines the upper left children of the specified root node. | DelegatingNodePlacer | ||
initAbstractRotatableNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix):void | AbstractRotatableNodePlacer | ||
initDelegatingNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix, placerUpperLeft:NodePlacer, placerLowerRight:NodePlacer):void
Initializes this object. | DelegatingNodePlacer | ||
placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):SubtreeShapeRotated [override] | DelegatingNodePlacer | ||
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 |
Constant | Defined By | ||
---|---|---|---|
HORIZONTAL : int [static]
Orientation specifier. | DelegatingNodePlacer | ||
LEFT_RIGHT_DPKEY : Object = y.layout.tree.DelegatingNodePlacer.LEFT_RIGHT_DPKEY [static]
Key which can be used to register a data provider that tells the node placer whether the node shall be placed on the left or right side. | DelegatingNodePlacer | ||
VERTICAL : int [static]
Orientation specifier. | DelegatingNodePlacer |
orientation | property |
orientation:int
Specifies the orientation according to which node shapes are aligned by this placer. Depending on the orientation the shapes are aligned on the x- or y-axis.
public function get orientation():int
public function set orientation(value:int):void
See also
placerLowerRight | property |
placerLowerRight:NodePlacer
[read-only]
Returns the NodePlacer
that is used to layout the nodes on the "lower right"
public function get placerLowerRight():NodePlacer
placerUpperLeft | property |
placerUpperLeft:NodePlacer
[read-only]
Returns the NodePlacer
that is used to layout the nodes on the "upper left"
public function get placerUpperLeft():NodePlacer
DelegatingNodePlacer | () | Constructor |
public function DelegatingNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix, placerUpperLeft:NodePlacer, placerLowerRight:NodePlacer, init:Boolean = true)
Creates a new instance using the given modification matrix an the node placers "this" delegates to.
ParametersmodificationMatrix:AbstractRotatableNodePlacer_Matrix | |
placerUpperLeft:NodePlacer | |
placerLowerRight: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.
|
createProcessor | () | method |
override public function createProcessor(layouter:GenericTreeLayouter, graph:LayoutGraph, currentRoot:Node):Processor
Creates a processor that partitions child nodes of the specified root node into two subsets, one to be arranged by the "upper left" NodePlacer
and one to be arranged by the "lower right" NodePlacer
.
Parameters
layouter:GenericTreeLayouter | |
graph:LayoutGraph | |
currentRoot:Node |
Processor |
See also
determineChildConnector | () | method |
determineChildConnectors | () | method |
override public function determineChildConnectors(localRoot:Node, connectorMap:DataMap):void
Parameters
localRoot:Node | |
connectorMap:DataMap |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getLowerRightChildren | () | method |
protected function getLowerRightChildren(localRoot:Node, graph:LayoutGraph):NodeList
Determines the lower right children of the specified root node.
Data provider LEFT_RIGHT_DPKEY
is used to determine on which side a node is placed. If no provider is specified, the first half of the nodes get placed on the left, the others on the right side These nodes are placed using the NodePlacer
returned by placerLowerRight.
Parameters
localRoot:Node | |
graph:LayoutGraph |
NodeList — a NodeList containing the lower right nodes.
|
See also
getUpperLeftChildren | () | method |
protected function getUpperLeftChildren(localRoot:Node, graph:LayoutGraph):NodeList
Determines the upper left children of the specified root node.
Data provider LEFT_RIGHT_DPKEY
is used to determine on which side a node is placed. If no provider is specified, the first half of the nodes get placed on the left, the others on the right side These nodes are placed using the NodePlacer
returned by placerUpperLeft.
Parameters
localRoot:Node | |
graph:LayoutGraph |
NodeList — a NodeList containing the upper left nodes.
|
See also
initDelegatingNodePlacer | () | method |
protected final function initDelegatingNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix, placerUpperLeft:NodePlacer, placerLowerRight:NodePlacer):void
Initializes this object. See the documentation of the corresponding factory method newDelegatingNodePlacer()
for details.
Parameters
modificationMatrix:AbstractRotatableNodePlacer_Matrix | |
placerUpperLeft:NodePlacer | |
placerLowerRight:NodePlacer |
See also
newDelegatingNodePlacer | () | method |
public static function newDelegatingNodePlacer(modificationMatrix:AbstractRotatableNodePlacer_Matrix, placerUpperLeft:NodePlacer, placerLowerRight:NodePlacer):DelegatingNodePlacer
Creates a new instance using the given modification matrix an the node placers "this" delegates to.
Parameters
modificationMatrix:AbstractRotatableNodePlacer_Matrix | |
placerUpperLeft:NodePlacer | |
placerLowerRight:NodePlacer |
DelegatingNodePlacer |
placeSubtree | () | method |
override public function placeSubtree(nodeShapeProvider:DataProvider, subtreeShapeProvider:DataProvider, graph:LayoutGraph, localRoot:Node, parentConnectorDirection:int):GenericTreeLayouter_SubtreeShape
Places the shapes of the children using the two node placers getUpperLeftChildren() and getLowerRightChildren().
Parameters
nodeShapeProvider:DataProvider | |
subtreeShapeProvider:DataProvider | |
graph:LayoutGraph | |
localRoot:Node | |
parentConnectorDirection:int |
GenericTreeLayouter_SubtreeShape — the subtree shape for the given local root.
|
See also
placeSubtreeCore | () | method |
override protected function placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):SubtreeShapeRotated
Parameters
localRoot:Node | |
parentConnectorDirection:int |
SubtreeShapeRotated |
HORIZONTAL | Constant |
public static const HORIZONTAL:int
Orientation specifier. Node shapes will be aligned on the x-axis.
See also
LEFT_RIGHT_DPKEY | Constant |
public static const LEFT_RIGHT_DPKEY:Object = y.layout.tree.DelegatingNodePlacer.LEFT_RIGHT_DPKEY
Key which can be used to register a data provider that tells the node placer whether the node shall be placed on the left or right side. If no provider is specified, the first half of the nodes placed on the left, the others on the right side The provider should return true if the node shall be placed on the left side.
VERTICAL | Constant |
public static const VERTICAL:int
Orientation specifier. Node shapes will be aligned on the y-axis.
See also