Package | com.yworks.yfiles.layout.tree |
Class | public class DoubleLinePlacer |
Inheritance | DoubleLinePlacer AbstractRotatableNodePlacer YObject Object |
Property | Defined By | ||
---|---|---|---|
doubleLineSpacingRatio : Number
Specifies the ratio of the spacing (spacing) between the root and the children in the upper line and the spacing between the two lines of subtrees. | DoubleLinePlacer | ||
modificationMatrix : AbstractRotatableNodePlacer_Matrix [read-only]
The actual modification matrix
| AbstractRotatableNodePlacer | ||
rootAlignment : AbstractRotatableNodePlacer_RootAlignment
Specifies the horizontal alignment that is used for the root node. | DoubleLinePlacer | ||
spacing : Number
Specifies the spacing between subtrees this NodePlacer is arranging. | AbstractRotatableNodePlacer |
Method | Defined By | ||
---|---|---|---|
DoubleLinePlacer(init:Boolean = true)
Creates a new DoubleLinePlacer with the default modification matrix. | DoubleLinePlacer | ||
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] | DoubleLinePlacer | ||
hashCode():int | YObject | ||
[static]
Creates a new DoubleLinePlacer with the default modification matrix. | DoubleLinePlacer | ||
[static]
Creates a new DoubleLinePlacer with the given modification matrix. | DoubleLinePlacer | ||
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 [override]
Returns com.yworks.yfiles.layout.tree.NodePlacerCompanion.DIRECTION_NORTH
| DoubleLinePlacer | ||
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 | ||
initDoubleLinePlacer1():void
Initializes this object. | DoubleLinePlacer | ||
initDoubleLinePlacer2(modificationMatrix:AbstractRotatableNodePlacer_Matrix):void
Initializes this object. | DoubleLinePlacer | ||
placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):SubtreeShapeRotated [override]
Places the subtree in two lines. | DoubleLinePlacer | ||
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 |
doubleLineSpacingRatio | property |
doubleLineSpacingRatio:Number
Specifies the ratio of the spacing (spacing) between the root and the children in the upper line and the spacing between the two lines of subtrees.
By default, the ratio is 0.33 due to backwards compatibility.
public function get doubleLineSpacingRatio():Number
public function set doubleLineSpacingRatio(value:Number):void
See also
rootAlignment | property |
rootAlignment:AbstractRotatableNodePlacer_RootAlignment
Specifies the horizontal alignment that is used for the root node.
public function get rootAlignment():AbstractRotatableNodePlacer_RootAlignment
public function set rootAlignment(value:AbstractRotatableNodePlacer_RootAlignment):void
DoubleLinePlacer | () | Constructor |
public function DoubleLinePlacer(init:Boolean = true)
Creates a new DoubleLinePlacer with the default modification matrix.
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.
|
determineChildConnector | () | method |
override protected function determineChildConnector(child:Node):int
Returns com.yworks.yfiles.layout.tree.NodePlacerCompanion.DIRECTION_NORTH
Parameters
child:Node |
int — NodePlacer#DIRECTION_NORTH
|
See also
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initDoubleLinePlacer1 | () | method |
protected final function initDoubleLinePlacer1():void
Initializes this object. See the documentation of the corresponding factory method newDoubleLinePlacer1()
for details.
See also
initDoubleLinePlacer2 | () | method |
protected final function initDoubleLinePlacer2(modificationMatrix:AbstractRotatableNodePlacer_Matrix):void
Initializes this object. See the documentation of the corresponding factory method newDoubleLinePlacer2()
for details.
Parameters
modificationMatrix:AbstractRotatableNodePlacer_Matrix |
See also
newDoubleLinePlacer1 | () | method |
public static function newDoubleLinePlacer1():DoubleLinePlacer
Creates a new DoubleLinePlacer with the default modification matrix.
ReturnsDoubleLinePlacer |
newDoubleLinePlacer2 | () | method |
public static function newDoubleLinePlacer2(modificationMatrix:AbstractRotatableNodePlacer_Matrix):DoubleLinePlacer
Creates a new DoubleLinePlacer with the given modification matrix.
Parameters
modificationMatrix:AbstractRotatableNodePlacer_Matrix — the current modification matrix
|
DoubleLinePlacer |
placeSubtreeCore | () | method |
override protected function placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):SubtreeShapeRotated
Places the subtree in two lines.
Parameters
localRoot:Node | |
parentConnectorDirection:int |
SubtreeShapeRotated — the subtree
|