Packagecom.yworks.yfiles.layout
Classpublic class FreeNodeLabelLayoutModel_ModelParameter
InheritanceFreeNodeLabelLayoutModel_ModelParameter Inheritance YObject Inheritance Object

The model parameter that encodes a node label position within FreeNodeLabelModel.

Holds the offset of a node label's upper-left corner relative to its node's upper-left corner.



Public Properties
 PropertyDefined By
  point : YPoint
[read-only] Returns the offset of this ModelParameter.
FreeNodeLabelLayoutModel_ModelParameter
Public Methods
 MethodDefined By
  
Returns a new instance of ModelParameter.
FreeNodeLabelLayoutModel_ModelParameter
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
FreeNodeLabelLayoutModel_ModelParameter
 Inherited
hashCode():int
YObject
  
[static] Returns a new instance of ModelParameter.
FreeNodeLabelLayoutModel_ModelParameter
  
[static] Returns a new instance of ModelParameter with the given offset.
FreeNodeLabelLayoutModel_ModelParameter
  
setPoint(dx:Number, dy:Number):void
Sets the node label's offset.
FreeNodeLabelLayoutModel_ModelParameter
Protected Methods
 MethodDefined By
  
Initializes this object.
FreeNodeLabelLayoutModel_ModelParameter
  
Initializes this object.
FreeNodeLabelLayoutModel_ModelParameter
Property Detail
pointproperty
point:YPoint  [read-only]

Returns the offset of this ModelParameter.


Implementation
    public function get point():YPoint
Constructor Detail
FreeNodeLabelLayoutModel_ModelParameter()Constructor
public function FreeNodeLabelLayoutModel_ModelParameter(init:Boolean = true)

Returns a new instance of ModelParameter. It has no offset, i.e., the upper-left corners of both node label and node are at the same location.

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.
Method Detail
getClass()method
override public function getClass():Class

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

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

See also

initFreeNodeLabelLayoutModel_ModelParameter2()method 
protected final function initFreeNodeLabelLayoutModel_ModelParameter2(dx:Number, dy:Number):void

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

Parameters

dx:Number
 
dy:Number

See also

newFreeNodeLabelLayoutModel_ModelParameter1()method 
public static function newFreeNodeLabelLayoutModel_ModelParameter1():FreeNodeLabelLayoutModel_ModelParameter

Returns a new instance of ModelParameter. It has no offset, i.e., the upper-left corners of both node label and node are at the same location.

Returns
FreeNodeLabelLayoutModel_ModelParameter
newFreeNodeLabelLayoutModel_ModelParameter2()method 
public static function newFreeNodeLabelLayoutModel_ModelParameter2(dx:Number, dy:Number):FreeNodeLabelLayoutModel_ModelParameter

Returns a new instance of ModelParameter with the given offset.

Parameters

dx:Number
 
dy:Number

Returns
FreeNodeLabelLayoutModel_ModelParameter
setPoint()method 
public function setPoint(dx:Number, dy:Number):void

Sets the node label's offset.

Parameters

dx:Number
 
dy:Number