Package | com.yworks.yfiles.layout.tree |
Class | public class ARNodePlacer |
Inheritance | ARNodePlacer AbstractNodePlacer YObject Object |
Implements | FromSketchNodePlacer |
See also
Property | Defined By | ||
---|---|---|---|
aspectRatio : Number
Specifies the preferred aspect ratio. | ARNodePlacer | ||
fillStyle : int
Specifies the fill style. | ARNodePlacer | ||
horizontal : Boolean
Specifies whether this instance is configured to create horizontal rows of child nodes. | ARNodePlacer | ||
horizontalDistance : Number
Specifies the horizontal distance this NodePlacer should use for the arrangement of the elements. | ARNodePlacer | ||
verticalDistance : Number
Specifies the vertical distance this NodePlacer should use for the arrangement of the elements. | ARNodePlacer |
Method | Defined By | ||
---|---|---|---|
ARNodePlacer(init:Boolean = true)
Creates a new instance of ARNodePlacer with default orientation (vertical), aspect ratio (1.0d), fill style ( FILL_STYLE_LEADING), and default distances (40.0d). | ARNodePlacer | ||
clone():Object [override] | ARNodePlacer | ||
ARNodePlacer | |||
Creates an optional Processor for pre- and post-processing. | AbstractNodePlacer | ||
This method initializes internal data structures and then uses the abstract method to determine the child node connector directions. | AbstractNodePlacer | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | ARNodePlacer | ||
hashCode():int | YObject | ||
[static]
Creates a new instance of ARNodePlacer with default orientation (vertical), aspect ratio (1.0d), fill style ( FILL_STYLE_LEADING), and default distances (40.0d). | ARNodePlacer | ||
newARNodePlacer2(horizontal:Boolean, aspectRatio:Number, fillStyle:int, horizontalDistance:Number, verticalDistance:Number):ARNodePlacer [static]
Creates a new instance of ARNodePlacer with given orientation and distances. | ARNodePlacer | ||
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. | AbstractNodePlacer |
Method | Defined By | ||
---|---|---|---|
cloneImpl(o:Object):void [override] | ARNodePlacer | ||
determineChildConnector(child:Node):int [override] | ARNodePlacer | ||
Convenience method that queries the DataProvider for the shape of a single node as a SubtreeShape instance. | AbstractNodePlacer | ||
Convenience method that queries the DataProvider for a SubtreeShape. | AbstractNodePlacer | ||
initAbstractNodePlacer():void | AbstractNodePlacer | ||
initARNodePlacer1():void
Initializes this object. | ARNodePlacer | ||
initARNodePlacer2(horizontal:Boolean, aspectRatio:Number, fillStyle:int, horizontalDistance:Number, verticalDistance:Number):void
Initializes this object. | ARNodePlacer | ||
[override] | ARNodePlacer |
Constant | Defined By | ||
---|---|---|---|
FILL_STYLE_CENTERED : int = 4 [static]
Byte constant that can be used for the fillStyle property. | ARNodePlacer | ||
FILL_STYLE_JUSTIFY : int = 3 [static]
Byte constant that can be used for the fillStyle property. | ARNodePlacer | ||
FILL_STYLE_LEADING : int = 1 [static]
Byte constant that can be used for the fillStyle property. | ARNodePlacer | ||
FILL_STYLE_TRAILING : int = 2 [static]
Byte constant that can be used for the fillStyle property. | ARNodePlacer |
aspectRatio | property |
aspectRatio:Number
Specifies the preferred aspect ratio.
public function get aspectRatio():Number
public function set aspectRatio(value:Number):void
fillStyle | property |
fillStyle:int
Specifies the fill style. The byte constant defines how nodes should be distributed within their lanes.
public function get fillStyle():int
public function set fillStyle(value:int):void
horizontal | property |
horizontal:Boolean
Specifies whether this instance is configured to create horizontal rows of child nodes.
public function get horizontal():Boolean
public function set horizontal(value:Boolean):void
horizontalDistance | property |
horizontalDistance:Number
Specifies the horizontal distance this NodePlacer should use for the arrangement of the elements.
public function get horizontalDistance():Number
public function set horizontalDistance(value:Number):void
verticalDistance | property |
verticalDistance:Number
Specifies the vertical distance this NodePlacer should use for the arrangement of the elements.
public function get verticalDistance():Number
public function set verticalDistance(value:Number):void
ARNodePlacer | () | Constructor |
public function ARNodePlacer(init:Boolean = true)
Creates a new instance of ARNodePlacer with default orientation (vertical), aspect ratio (1.0d), fill style ( FILL_STYLE_LEADING), and default distances (40.0d
).
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
clone | () | method |
override public function clone():Object
ReturnsObject |
cloneImpl | () | method |
override protected function cloneImpl(o:Object):void
Parameters
o:Object |
createFromSketchComparator | () | method |
determineChildConnector | () | method |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initARNodePlacer1 | () | method |
protected final function initARNodePlacer1():void
Initializes this object. See the documentation of the corresponding factory method newARNodePlacer1()
for details.
See also
initARNodePlacer2 | () | method |
protected final function initARNodePlacer2(horizontal:Boolean, aspectRatio:Number, fillStyle:int, horizontalDistance:Number, verticalDistance:Number):void
Initializes this object. See the documentation of the corresponding factory method newARNodePlacer2()
for details.
Parameters
horizontal:Boolean | |
aspectRatio:Number | |
fillStyle:int | |
horizontalDistance:Number | |
verticalDistance:Number |
See also
newARNodePlacer1 | () | method |
public static function newARNodePlacer1():ARNodePlacer
Creates a new instance of ARNodePlacer with default orientation (vertical), aspect ratio (1.0d), fill style ( FILL_STYLE_LEADING), and default distances (40.0d
).
ARNodePlacer |
See also
newARNodePlacer2 | () | method |
public static function newARNodePlacer2(horizontal:Boolean, aspectRatio:Number, fillStyle:int, horizontalDistance:Number, verticalDistance:Number):ARNodePlacer
Creates a new instance of ARNodePlacer with given orientation and distances.
Parameters
horizontal:Boolean — true for horizontal row mode
| |
aspectRatio:Number — the aspectRatio, this instance should try to obey
| |
fillStyle:int — a fill style constant describing the node distribution
| |
horizontalDistance:Number — horizontal distance between adjacent elements
| |
verticalDistance:Number — vertical distance between adjacent elements
|
ARNodePlacer |
placeSubtreeCore | () | method |
override protected function placeSubtreeCore(localRoot:Node, parentConnectorDirection:int):GenericTreeLayouter_SubtreeShape
Parameters
localRoot:Node | |
parentConnectorDirection:int |
GenericTreeLayouter_SubtreeShape |
FILL_STYLE_CENTERED | Constant |
public static const FILL_STYLE_CENTERED:int = 4
Byte constant that can be used for the fillStyle
property.
Elements in one lane will be centered with the bounds.
FILL_STYLE_JUSTIFY | Constant |
public static const FILL_STYLE_JUSTIFY:int = 3
Byte constant that can be used for the fillStyle
property.
Elements in one lane will be justified with the bounds.
FILL_STYLE_LEADING | Constant |
public static const FILL_STYLE_LEADING:int = 1
Byte constant that can be used for the fillStyle
property.
Elements in one lane will be aligned with the leading edge.
FILL_STYLE_TRAILING | Constant |
public static const FILL_STYLE_TRAILING:int = 2
Byte constant that can be used for the fillStyle
property.
Elements in one lane will be aligned with the trailing edge.