Packagecom.yworks.yfiles.layout.tree
Classpublic class SimpleNodePlacer
InheritanceSimpleNodePlacer Inheritance AbstractRotatableNodePlacer Inheritance YObject Inheritance Object

This is a "default" NodePlacer. It arranges its children simply in one row.



Public Properties
 PropertyDefined By
  createBus : Boolean
Specifies whether a bus should be created between the parent and its children.
SimpleNodePlacer
 InheritedmodificationMatrix : AbstractRotatableNodePlacer_Matrix
[read-only] The actual modification matrix
AbstractRotatableNodePlacer
  rootAlignment : AbstractRotatableNodePlacer_RootAlignment
Specifies the horizontal alignment of the root node.
SimpleNodePlacer
 Inheritedspacing : Number
Specifies the spacing between subtrees this NodePlacer is arranging.
AbstractRotatableNodePlacer
  verticalAlignment : Number
Specifies the relative vertical alignment of nodes with the same parent.
SimpleNodePlacer
Protected Properties
 PropertyDefined By
 InheritedcreatedChildren : List
List containing the created children
AbstractRotatableNodePlacer
 Inheritedgraph : LayoutGraph
The graph instance this class is working on
AbstractRotatableNodePlacer
 InheritednodeShapeProvider : DataProvider
The actual node shape provider
AbstractRotatableNodePlacer
 Inherited_spacing : Number
This is the "default" spacing for the different move operations.
AbstractRotatableNodePlacer
 InheritedsubtreeShapeProvider : DataProvider
The actual subtree shape provider
AbstractRotatableNodePlacer
Public Methods
 MethodDefined By
  
SimpleNodePlacer(init:Boolean = true)
Default constructor that creates an instance with the modification matrix com.yworks.yfiles.layout.tree.AbstractRotatableNodePlacer_Matrix.DEFAULT
SimpleNodePlacer
 Inherited
AbstractRotatableNodePlacer
 Inherited
AbstractRotatableNodePlacer
 Inherited
Creates an optional Processor for pre- and post-processing.
AbstractRotatableNodePlacer
 Inherited
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.
AbstractRotatableNodePlacer
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
SimpleNodePlacer
 Inherited
hashCode():int
YObject
  
[static] Default constructor that creates an instance with the modification matrix com.yworks.yfiles.layout.tree.AbstractRotatableNodePlacer_Matrix.DEFAULT
SimpleNodePlacer
  
[static] Constructor that creates an instance with the given modification matrix.
SimpleNodePlacer
  
[static] Constructor that creates an instance with the given modification matrix and the horizontal root alignment
SimpleNodePlacer
 Inherited
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
 Inherited
[static] Translates a "real world point" to a "model point"
AbstractRotatableNodePlacer
Protected Methods
 MethodDefined By
 Inherited
createRootNodeShape(node:Node):SubtreeShapeRotated
Convenience method that queries the DataProvider for the shape of a single node as a SubtreeShape instance.
AbstractRotatableNodePlacer
 Inherited
createSubtreeShape(node:Node):SubtreeShapeRotated
Convenience method that queries the DataProvider for a SubtreeShape.
AbstractRotatableNodePlacer
  
[override] Returns com.yworks.yfiles.layout.tree.NodePlacerCompanion.DIRECTION_NORTH.
SimpleNodePlacer
 Inherited
Lookup method to get the PortConstraint for the local root translated.
AbstractRotatableNodePlacer
 Inherited
Translates the absolute source point of the given edge to the "view coordinates" (translated by the modification matrix)
AbstractRotatableNodePlacer
 Inherited
AbstractRotatableNodePlacer
  
Initializes this object.
SimpleNodePlacer
  
Initializes this object.
SimpleNodePlacer
  
Initializes this object.
SimpleNodePlacer
  
placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):SubtreeShapeRotated
[override] Places the children in a single row.
SimpleNodePlacer
 Inherited
translateDirectionToModel(realDirection:int):int
Translates a "real" direction into a directionModel direction
AbstractRotatableNodePlacer
 Inherited
translateDirectionToReal(modelDirection:int):int
Translates a modelDirectionModel into the "real" directionModel
AbstractRotatableNodePlacer
Property Detail
createBusproperty
createBus:Boolean

Specifies whether a bus should be created between the parent and its children.


Implementation
    public function get createBus():Boolean
    public function set createBus(value:Boolean):void
rootAlignmentproperty 
rootAlignment:AbstractRotatableNodePlacer_RootAlignment

Specifies the horizontal alignment of the root node.


Implementation
    public function get rootAlignment():AbstractRotatableNodePlacer_RootAlignment
    public function set rootAlignment(value:AbstractRotatableNodePlacer_RootAlignment):void
verticalAlignmentproperty 
verticalAlignment:Number

Specifies the relative vertical alignment of nodes with the same parent. A value of 0 means nodes are top aligned; a value of 1 means nodes are bottom aligned; a value of 0.5 means nodes are center aligned. Values outside the interval [0,1] will result in a compact node placement with unaligned nodes.

By default the compact placement with unaligned nodes is used.


Implementation
    public function get verticalAlignment():Number
    public function set verticalAlignment(value:Number):void
Constructor Detail
SimpleNodePlacer()Constructor
public function SimpleNodePlacer(init:Boolean = true)

Default constructor that creates an instance with the modification matrix com.yworks.yfiles.layout.tree.AbstractRotatableNodePlacer_Matrix.DEFAULT

Parameters
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.

See also

Method Detail
determineChildConnector()method
override protected function determineChildConnector(child:Node):int

Returns com.yworks.yfiles.layout.tree.NodePlacerCompanion.DIRECTION_NORTH.

Parameters

child:Node

Returns
int — com.yworks.yfiles.layout.tree.NodePlacerCompanion.DIRECTION_NORTH.

See also

getClass()method 
override public function getClass():Class

Returns
Class
initSimpleNodePlacer1()method 
protected final function initSimpleNodePlacer1():void

Initializes this object. See the documentation of the corresponding factory method newSimpleNodePlacer1() for details.

See also

initSimpleNodePlacer2()method 
protected final function initSimpleNodePlacer2(modificationMatrix:AbstractRotatableNodePlacer_Matrix):void

Initializes this object. See the documentation of the corresponding factory method newSimpleNodePlacer2() for details.

Parameters

modificationMatrix:AbstractRotatableNodePlacer_Matrix

See also

initSimpleNodePlacer3()method 
protected final function initSimpleNodePlacer3(modificationMatrix:AbstractRotatableNodePlacer_Matrix, rootAlignment:AbstractRotatableNodePlacer_RootAlignment):void

Initializes this object. See the documentation of the corresponding factory method newSimpleNodePlacer3() for details.

Parameters

modificationMatrix:AbstractRotatableNodePlacer_Matrix
 
rootAlignment:AbstractRotatableNodePlacer_RootAlignment

See also

newSimpleNodePlacer1()method 
public static function newSimpleNodePlacer1():SimpleNodePlacer

Default constructor that creates an instance with the modification matrix com.yworks.yfiles.layout.tree.AbstractRotatableNodePlacer_Matrix.DEFAULT

Returns
SimpleNodePlacer

See also

newSimpleNodePlacer2()method 
public static function newSimpleNodePlacer2(modificationMatrix:AbstractRotatableNodePlacer_Matrix):SimpleNodePlacer

Constructor that creates an instance with the given modification matrix.

Parameters

modificationMatrix:AbstractRotatableNodePlacer_Matrix

Returns
SimpleNodePlacer
newSimpleNodePlacer3()method 
public static function newSimpleNodePlacer3(modificationMatrix:AbstractRotatableNodePlacer_Matrix, rootAlignment:AbstractRotatableNodePlacer_RootAlignment):SimpleNodePlacer

Constructor that creates an instance with the given modification matrix and the horizontal root alignment

Parameters

modificationMatrix:AbstractRotatableNodePlacer_Matrix
 
rootAlignment:AbstractRotatableNodePlacer_RootAlignment

Returns
SimpleNodePlacer
placeSubtreeCore()method 
override protected function placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):SubtreeShapeRotated

Places the children in a single row.

Parameters

localRoot:Node
 
parentConnectorDirection:int

Returns
SubtreeShapeRotated