Packagecom.yworks.yfiles.layout
Classpublic class DefaultNodeLabelLayout
InheritanceDefaultNodeLabelLayout Inheritance YObject Inheritance Object
Implements NodeLabelLayout

This class is the default implementation for the NodeLabelLayout.



Public Properties
 PropertyDefined By
  box : YRectangle
[read-only]
DefaultNodeLabelLayout
  labelModel : NodeLabelModel
[read-only]
DefaultNodeLabelLayout
  modelParameter : Object
Specifies the NodeLabelModel parameter that describes the position of the label layout
DefaultNodeLabelLayout
  node : Node
[read-only] Returns the node associated with this layout.
DefaultNodeLabelLayout
  orientedBox : YOrientedRectangle
[read-only]
DefaultNodeLabelLayout
Public Methods
 MethodDefined By
  
DefaultNodeLabelLayout(model:NodeLabelModel, param:Object, orientedBox:YOrientedRectangle, node:Node, init:Boolean = true)
Creates a new instance of com.yworks.yfiles.layout.DefaultNodeLabelLayout
DefaultNodeLabelLayout
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
DefaultNodeLabelLayout
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance of com.yworks.yfiles.layout.DefaultNodeLabelLayout
DefaultNodeLabelLayout
  
[static] Creates a new instance of com.yworks.yfiles.layout.DefaultNodeLabelLayout
DefaultNodeLabelLayout
Protected Methods
 MethodDefined By
  
initDefaultNodeLabelLayout1(model:NodeLabelModel, param:Object, orientedBox:YOrientedRectangle, node:Node):void
Initializes this object.
DefaultNodeLabelLayout
  
initDefaultNodeLabelLayout2(model:NodeLabelModel, param:Object, box:YRectangle, node:Node):void
Initializes this object.
DefaultNodeLabelLayout
Property Detail
boxproperty
box:YRectangle  [read-only]


Implementation
    public function get box():YRectangle
labelModelproperty 
labelModel:NodeLabelModel  [read-only]


Implementation
    public function get labelModel():NodeLabelModel
modelParameterproperty 
modelParameter:Object

Specifies the NodeLabelModel parameter that describes the position of the label layout


Implementation
    public function get modelParameter():Object
    public function set modelParameter(value:Object):void
nodeproperty 
node:Node  [read-only]

Returns the node associated with this layout.


Implementation
    public function get node():Node
orientedBoxproperty 
orientedBox:YOrientedRectangle  [read-only]


Implementation
    public function get orientedBox():YOrientedRectangle
Constructor Detail
DefaultNodeLabelLayout()Constructor
public function DefaultNodeLabelLayout(model:NodeLabelModel, param:Object, orientedBox:YOrientedRectangle, node:Node, init:Boolean = true)

Creates a new instance of com.yworks.yfiles.layout.DefaultNodeLabelLayout

Parameters
model:NodeLabelModel — the NodeLabel model for this label layout
 
param:Object — the NodeLabelModel parameter that describes the position of the label layout.
 
orientedBox:YOrientedRectangle — the bounds of this label layout
 
node:Node
 
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
getClass()method
override public function getClass():Class

Returns
Class
initDefaultNodeLabelLayout1()method 
protected final function initDefaultNodeLabelLayout1(model:NodeLabelModel, param:Object, orientedBox:YOrientedRectangle, node:Node):void

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

Parameters

model:NodeLabelModel
 
param:Object
 
orientedBox:YOrientedRectangle
 
node:Node

See also

initDefaultNodeLabelLayout2()method 
protected final function initDefaultNodeLabelLayout2(model:NodeLabelModel, param:Object, box:YRectangle, node:Node):void

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

Parameters

model:NodeLabelModel
 
param:Object
 
box:YRectangle
 
node:Node

See also

newDefaultNodeLabelLayout1()method 
public static function newDefaultNodeLabelLayout1(model:NodeLabelModel, param:Object, orientedBox:YOrientedRectangle, node:Node):DefaultNodeLabelLayout

Creates a new instance of com.yworks.yfiles.layout.DefaultNodeLabelLayout

Parameters

model:NodeLabelModel — the NodeLabel model for this label layout
 
param:Object — the NodeLabelModel parameter that describes the position of the label layout.
 
orientedBox:YOrientedRectangle — the bounds of this label layout
 
node:Node

Returns
DefaultNodeLabelLayout

See also

newDefaultNodeLabelLayout2()method 
public static function newDefaultNodeLabelLayout2(model:NodeLabelModel, param:Object, box:YRectangle, node:Node):DefaultNodeLabelLayout

Creates a new instance of com.yworks.yfiles.layout.DefaultNodeLabelLayout

Parameters

model:NodeLabelModel — the NodeLabel model for this label layout
 
param:Object — the NodeLabelModel parameter that describes the position of the label layout.
 
box:YRectangle — the bounds of this label layout
 
node:Node

Returns
DefaultNodeLabelLayout

See also