Package | com.yworks.yfiles.geom |
Class | public class YDimension |
Inheritance | YDimension YObject Object |
Implements | Comparable |
Subclasses | YRectangle |
Property | Defined By | ||
---|---|---|---|
height : Number [read-only]
Get the height of the dimension object. | YDimension | ||
width : Number [read-only]
Get the width of the dimension object. | YDimension |
Method | Defined By | ||
---|---|---|---|
YDimension(width:Number, height:Number, init:Boolean = true)
Creates a new YDimension2D object for given size. | YDimension | ||
compareTo(o:Object):int | YDimension | ||
equals(o:Object):Boolean [override]
Tests a dimension to equality to another dimension. | YDimension | ||
getClass():Class [override] | YDimension | ||
hashCode():int [override] | YDimension | ||
newYDimension(width:Number, height:Number):YDimension [static]
Creates a new YDimension2D object for given size. | YDimension | ||
toString():String
Returns the size in the form: "W: width H: height"
| YDimension |
Method | Defined By | ||
---|---|---|---|
initYDimension(width:Number, height:Number):void
Initializes this object. | YDimension |
height | property |
height:Number
[read-only] Get the height of the dimension object.
public function get height():Number
width | property |
width:Number
[read-only] Get the width of the dimension object.
public function get width():Number
YDimension | () | Constructor |
public function YDimension(width:Number, height:Number, init:Boolean = true)
Creates a new YDimension2D object for given size.
Parameterswidth:Number | |
height:Number | |
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.
|
compareTo | () | method |
public function compareTo(o:Object):int
Parameters
o:Object |
int |
equals | () | method |
override public function equals(o:Object):Boolean
Tests a dimension to equality to another dimension.
Parameters
o:Object |
Boolean |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
hashCode | () | method |
override public function hashCode():int
Returnsint |
initYDimension | () | method |
protected final function initYDimension(width:Number, height:Number):void
Initializes this object. See the documentation of the corresponding factory method newYDimension()
for details.
Parameters
width:Number | |
height:Number |
See also
newYDimension | () | method |
public static function newYDimension(width:Number, height:Number):YDimension
Creates a new YDimension2D object for given size.
Parameters
width:Number | |
height:Number |
YDimension |
toString | () | method |
public function toString():String
Returns the size in the form: "W: width H: height"
ReturnsString |