Packagecom.yworks.yfiles.layout.tree
Classpublic class AbstractRotatableNodePlacer_RootAlignment
InheritanceAbstractRotatableNodePlacer_RootAlignment Inheritance YObject Inheritance Object

This class represents the horizontal alignment of the root node. There are several implementation that may be used:

See also

CENTER
CENTER_OVER_CHILDREN
LEADING
TRAILING
LEFT
RIGHT


Public Properties
 PropertyDefined By
  ALL : Vector.<Object>
[static] [read-only]
AbstractRotatableNodePlacer_RootAlignment
  CENTER : AbstractRotatableNodePlacer_RootAlignment
[static] [read-only]
AbstractRotatableNodePlacer_RootAlignment
  CENTER_OVER_CHILDREN : AbstractRotatableNodePlacer_RootAlignment
[static] [read-only]
AbstractRotatableNodePlacer_RootAlignment
  CRITICAL_EDGE : AbstractRotatableNodePlacer_RootAlignment
[static] [read-only]
AbstractRotatableNodePlacer_RootAlignment
  LEADING : AbstractRotatableNodePlacer_RootAlignment
[static] [read-only]
AbstractRotatableNodePlacer_RootAlignment
  LEFT : AbstractRotatableNodePlacer_RootAlignment
[static] [read-only]
AbstractRotatableNodePlacer_RootAlignment
  MEDIAN : AbstractRotatableNodePlacer_RootAlignment
[static] [read-only]
AbstractRotatableNodePlacer_RootAlignment
  RIGHT : AbstractRotatableNodePlacer_RootAlignment
[static] [read-only]
AbstractRotatableNodePlacer_RootAlignment
  TRAILING : AbstractRotatableNodePlacer_RootAlignment
[static] [read-only]
AbstractRotatableNodePlacer_RootAlignment
Public Methods
 MethodDefined By
  
AbstractRotatableNodePlacer_RootAlignment
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
AbstractRotatableNodePlacer_RootAlignment
 Inherited
hashCode():int
YObject
Protected Methods
 MethodDefined By
  
[static] Calculates the bounds of a list of shapes.
AbstractRotatableNodePlacer_RootAlignment
  
AbstractRotatableNodePlacer_RootAlignment
  
placeParentHorizontal(rootShape:SubtreeShapeRotated, shapes:List, shapeBounds:Rectangle2D, spacing:Number):void
This method moves the rootShape to the right position relative to the children's shapes.
AbstractRotatableNodePlacer_RootAlignment
Property Detail
ALLproperty
ALL:Vector.<Object>  [read-only]


Implementation
    public static function get ALL():Vector.<Object>
CENTERproperty 
CENTER:AbstractRotatableNodePlacer_RootAlignment  [read-only]


Implementation
    public static function get CENTER():AbstractRotatableNodePlacer_RootAlignment
CENTER_OVER_CHILDRENproperty 
CENTER_OVER_CHILDREN:AbstractRotatableNodePlacer_RootAlignment  [read-only]


Implementation
    public static function get CENTER_OVER_CHILDREN():AbstractRotatableNodePlacer_RootAlignment
CRITICAL_EDGEproperty 
CRITICAL_EDGE:AbstractRotatableNodePlacer_RootAlignment  [read-only]


Implementation
    public static function get CRITICAL_EDGE():AbstractRotatableNodePlacer_RootAlignment
LEADINGproperty 
LEADING:AbstractRotatableNodePlacer_RootAlignment  [read-only]


Implementation
    public static function get LEADING():AbstractRotatableNodePlacer_RootAlignment
LEFTproperty 
LEFT:AbstractRotatableNodePlacer_RootAlignment  [read-only]


Implementation
    public static function get LEFT():AbstractRotatableNodePlacer_RootAlignment
MEDIANproperty 
MEDIAN:AbstractRotatableNodePlacer_RootAlignment  [read-only]


Implementation
    public static function get MEDIAN():AbstractRotatableNodePlacer_RootAlignment
RIGHTproperty 
RIGHT:AbstractRotatableNodePlacer_RootAlignment  [read-only]


Implementation
    public static function get RIGHT():AbstractRotatableNodePlacer_RootAlignment
TRAILINGproperty 
TRAILING:AbstractRotatableNodePlacer_RootAlignment  [read-only]


Implementation
    public static function get TRAILING():AbstractRotatableNodePlacer_RootAlignment
Constructor Detail
AbstractRotatableNodePlacer_RootAlignment()Constructor
public function AbstractRotatableNodePlacer_RootAlignment(init:Boolean = true)



Parameters
init:Boolean (default = true)
Method Detail
getBounds()method
protected static function getBounds(shapes:List):Rectangle2D

Calculates the bounds of a list of shapes.

Parameters

shapes:List — the list of shapes the bounds shall be calculated of.

Returns
Rectangle2D — the bounds around all shapes in the list.
getClass()method 
override public function getClass():Class

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

placeParentHorizontal()method 
protected function placeParentHorizontal(rootShape:SubtreeShapeRotated, shapes:List, shapeBounds:Rectangle2D, spacing:Number):void

This method moves the rootShape to the right position relative to the children's shapes. The movement should only be done on the X-axis (horizontally).

Parameters

rootShape:SubtreeShapeRotated — the shape of the root node that is moved
 
shapes:List — list of shapes of the children nodes
 
shapeBounds:Rectangle2D — accumulated shapes of all children's shapes
 
spacing:Number — the spacing that should be used.