Package | com.yworks.yfiles.layout |
Class | public class LabelLayoutData |
Inheritance | LabelLayoutData YObject Object |
See also
Property | Defined By | ||
---|---|---|---|
bounds : YOrientedRectangle
Specifies the oriented bounds (com.yworks.yfiles.geom.YOrientedRectangle) of the label. | LabelLayoutData | ||
height : Number [read-only]
Returns the height of the label. | LabelLayoutData | ||
preferredPlacement : int
Specifies the preferred placement for this label. | LabelLayoutData | ||
preferredPlacementDescriptor : PreferredPlacementDescriptor
Specifies the preferred placement for this label. | LabelLayoutData | ||
width : Number [read-only]
Returns the width of the label. | LabelLayoutData | ||
x : Number [read-only]
Returns the x-coordinate of the label's upper-left corner of the bounding box. | LabelLayoutData | ||
y : Number [read-only]
Returns the y-coordinate of the label's upper-left corner of the bounding box. | LabelLayoutData |
Method | Defined By | ||
---|---|---|---|
LabelLayoutData(bounds:YOrientedRectangle, init:Boolean = true)
Creates a new instance of LabelLayoutData. | LabelLayoutData | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | LabelLayoutData | ||
hashCode():int | YObject | ||
[static]
Creates a new instance of LabelLayoutData. | LabelLayoutData | ||
newLabelLayoutData2(width:Number, height:Number):LabelLayoutData [static]
Creates a new instance of LabelLayoutData. | LabelLayoutData | ||
[static]
Creates a new instance of LabelLayoutData. | LabelLayoutData | ||
newLabelLayoutData4(width:Number, height:Number, preferredPlacement:int):LabelLayoutData [static]
Creates a new instance of LabelLayoutData. | LabelLayoutData | ||
newLabelLayoutData5(bounds:YOrientedRectangle, preferredPlacement:PreferredPlacementDescriptor):LabelLayoutData [static]
Creates a new instance of LabelLayoutData. | LabelLayoutData | ||
setLocation(x:Number, y:Number):void
Sets the coordinates of the upper-left corner of the bounding box of the label. | LabelLayoutData | ||
setSize(width:Number, height:Number):void
Sets the width (com.yworks.yfiles.geom.YOrientedRectangle.width) and height (com.yworks.yfiles.geom.YOrientedRectangle.height) of the oriented bounds (bounds) of this label. | LabelLayoutData | ||
toString():String
Returns a string representation of this object. | LabelLayoutData |
Method | Defined By | ||
---|---|---|---|
initLabelLayoutData1(bounds:YOrientedRectangle):void
Initializes this object. | LabelLayoutData | ||
initLabelLayoutData2(width:Number, height:Number):void
Initializes this object. | LabelLayoutData | ||
initLabelLayoutData3(bounds:YOrientedRectangle, preferredPlacement:int):void
Initializes this object. | LabelLayoutData | ||
initLabelLayoutData4(width:Number, height:Number, preferredPlacement:int):void
Initializes this object. | LabelLayoutData | ||
initLabelLayoutData5(bounds:YOrientedRectangle, preferredPlacement:PreferredPlacementDescriptor):void
Initializes this object. | LabelLayoutData |
bounds | property |
bounds:YOrientedRectangle
Specifies the oriented bounds (com.yworks.yfiles.geom.YOrientedRectangle) of the label.
public function get bounds():YOrientedRectangle
public function set bounds(value:YOrientedRectangle):void
See also
height | property |
height:Number
[read-only] Returns the height of the label.
public function get height():Number
preferredPlacement | property |
preferredPlacement:int
Specifies the preferred placement for this label.
public function get preferredPlacement():int
public function set preferredPlacement(value:int):void
See also
preferredPlacementDescriptor | property |
preferredPlacementDescriptor:PreferredPlacementDescriptor
Specifies the preferred placement for this label.
public function get preferredPlacementDescriptor():PreferredPlacementDescriptor
public function set preferredPlacementDescriptor(value:PreferredPlacementDescriptor):void
IllegalArgumentException — if the specified descriptor is null .
|
See also
width | property |
width:Number
[read-only] Returns the width of the label.
public function get width():Number
x | property |
x:Number
[read-only] Returns the x-coordinate of the label's upper-left corner of the bounding box.
public function get x():Number
y | property |
y:Number
[read-only] Returns the y-coordinate of the label's upper-left corner of the bounding box.
public function get y():Number
LabelLayoutData | () | Constructor |
public function LabelLayoutData(bounds:YOrientedRectangle, init:Boolean = true)
Creates a new instance of LabelLayoutData.
Parametersbounds:YOrientedRectangle — the oriented bounds (com.yworks.yfiles.geom.YOrientedRectangle) of the label
| |
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
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initLabelLayoutData1 | () | method |
protected final function initLabelLayoutData1(bounds:YOrientedRectangle):void
Initializes this object. See the documentation of the corresponding factory method newLabelLayoutData1()
for details.
Parameters
bounds:YOrientedRectangle |
See also
initLabelLayoutData2 | () | method |
protected final function initLabelLayoutData2(width:Number, height:Number):void
Initializes this object. See the documentation of the corresponding factory method newLabelLayoutData2()
for details.
Parameters
width:Number | |
height:Number |
See also
initLabelLayoutData3 | () | method |
protected final function initLabelLayoutData3(bounds:YOrientedRectangle, preferredPlacement:int):void
Initializes this object. See the documentation of the corresponding factory method newLabelLayoutData3()
for details.
Parameters
bounds:YOrientedRectangle | |
preferredPlacement:int |
See also
initLabelLayoutData4 | () | method |
protected final function initLabelLayoutData4(width:Number, height:Number, preferredPlacement:int):void
Initializes this object. See the documentation of the corresponding factory method newLabelLayoutData4()
for details.
Parameters
width:Number | |
height:Number | |
preferredPlacement:int |
See also
initLabelLayoutData5 | () | method |
protected final function initLabelLayoutData5(bounds:YOrientedRectangle, preferredPlacement:PreferredPlacementDescriptor):void
Initializes this object. See the documentation of the corresponding factory method newLabelLayoutData5()
for details.
Parameters
bounds:YOrientedRectangle | |
preferredPlacement:PreferredPlacementDescriptor |
See also
newLabelLayoutData1 | () | method |
public static function newLabelLayoutData1(bounds:YOrientedRectangle):LabelLayoutData
Creates a new instance of LabelLayoutData.
Parameters
bounds:YOrientedRectangle — the oriented bounds (com.yworks.yfiles.geom.YOrientedRectangle) of the label
|
LabelLayoutData |
See also
newLabelLayoutData2 | () | method |
public static function newLabelLayoutData2(width:Number, height:Number):LabelLayoutData
Creates a new instance of LabelLayoutData. com.yworks.yfiles.layout.LabelLayoutConstants.PLACE_ANYWHERE is used as preferred placement specifier.
Parameters
width:Number — the width of the label
| |
height:Number — the height of the label
|
LabelLayoutData |
See also
newLabelLayoutData3 | () | method |
public static function newLabelLayoutData3(bounds:YOrientedRectangle, preferredPlacement:int):LabelLayoutData
Creates a new instance of LabelLayoutData.
Parameters
bounds:YOrientedRectangle — the oriented bounds (com.yworks.yfiles.geom.YOrientedRectangle) of the label
| |
preferredPlacement:int — a preferred placement specifier
|
LabelLayoutData |
See also
newLabelLayoutData4 | () | method |
public static function newLabelLayoutData4(width:Number, height:Number, preferredPlacement:int):LabelLayoutData
Creates a new instance of LabelLayoutData.
Parameters
width:Number — the width of the label
| |
height:Number — the height of the label
| |
preferredPlacement:int — a preferred placement specifier
|
LabelLayoutData |
See also
newLabelLayoutData5 | () | method |
public static function newLabelLayoutData5(bounds:YOrientedRectangle, preferredPlacement:PreferredPlacementDescriptor):LabelLayoutData
Creates a new instance of LabelLayoutData.
Parameters
bounds:YOrientedRectangle — the oriented bounds (com.yworks.yfiles.geom.YOrientedRectangle) of the label
| |
preferredPlacement:PreferredPlacementDescriptor — a preferred placement specifier
|
LabelLayoutData |
IllegalArgumentException — if the specified descriptor is null .
|
See also
setLocation | () | method |
public function setLocation(x:Number, y:Number):void
Sets the coordinates of the upper-left corner of the bounding box of the label.
Parameters
x:Number | |
y:Number |
setSize | () | method |
public function setSize(width:Number, height:Number):void
Sets the width (com.yworks.yfiles.geom.YOrientedRectangle.width) and height (com.yworks.yfiles.geom.YOrientedRectangle.height) of the oriented bounds (bounds) of this label. Note that width and height in contrast yield the width and height of the bounding box of the oriented bounds, which only coincide with the size of the oriented bounds in the case where the oriented bounds are not rotated.
Parameters
width:Number | |
height:Number |
See also
toString | () | method |
public function toString():String
Returns a string representation of this object.
ReturnsString |