Package | com.yworks.yfiles.layout |
Class | public class FreeNodeLabelLayoutModel |
Inheritance | FreeNodeLabelLayoutModel YObject Object |
Implements | NodeLabelModel |
Property | Defined By | ||
---|---|---|---|
defaultParameter : Object [read-only]
Returns a model parameter that encodes the default position of this model's allowed node label positions. | FreeNodeLabelLayoutModel |
Method | Defined By | ||
---|---|---|---|
FreeNodeLabelLayoutModel(init:Boolean = true)
Returns a new instance of FreeNodeLabelModel. | FreeNodeLabelLayoutModel | ||
FreeNodeLabelLayoutModel | |||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | FreeNodeLabelLayoutModel | ||
Returns a list of candidate positions for the given node label. | FreeNodeLabelLayoutModel | ||
FreeNodeLabelLayoutModel | |||
hashCode():int | YObject | ||
[static]
Returns a new instance of FreeNodeLabelModel. | FreeNodeLabelLayoutModel |
Method | Defined By | ||
---|---|---|---|
initFreeNodeLabelLayoutModel():void
Initializes this object. | FreeNodeLabelLayoutModel |
defaultParameter | property |
defaultParameter:Object
[read-only] Returns a model parameter that encodes the default position of this model's allowed node label positions.
The offset is set to a default value of -20 pixel for both directions, i.e., the node label's upper-left corner is placed 20 pixel to the left and 20 pixel above the node.
public function get defaultParameter():Object
FreeNodeLabelLayoutModel | () | Constructor |
public function FreeNodeLabelLayoutModel(init:Boolean = true)
Returns a new instance of FreeNodeLabelModel.
Parametersinit: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.
|
createModelParameter | () | method |
public function createModelParameter(labelBounds:YOrientedRectangle, nodeLayout:NodeLayout):Object
Parameters
labelBounds:YOrientedRectangle | |
nodeLayout:NodeLayout |
Object |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getLabelCandidates | () | method |
public function getLabelCandidates(nl:NodeLabelLayout, nodeLayout:NodeLayout):YList
Returns a list of candidate positions for the given node label. The list consists of exactly one position.
Parameters
nl:NodeLabelLayout | |
nodeLayout:NodeLayout |
YList |
getLabelPlacement | () | method |
public function getLabelPlacement(labelSize:YDimension, nodeLayout:NodeLayout, param:Object):YOrientedRectangle
Parameters
labelSize:YDimension | |
nodeLayout:NodeLayout | |
param:Object |
YOrientedRectangle |
initFreeNodeLabelLayoutModel | () | method |
protected final function initFreeNodeLabelLayoutModel():void
Initializes this object. See the documentation of the corresponding factory method newFreeNodeLabelLayoutModel()
for details.
See also
newFreeNodeLabelLayoutModel | () | method |
public static function newFreeNodeLabelLayoutModel():FreeNodeLabelLayoutModel
Returns a new instance of FreeNodeLabelModel.
ReturnsFreeNodeLabelLayoutModel |