Package | com.yworks.bridge.geom |
Class | public class Dimension |
Inheritance | Dimension YObject Object |
Implements | Clonable |
Property | Defined By | ||
---|---|---|---|
_height : int | Dimension | ||
height : Number [read-only] | Dimension | ||
size : Dimension | Dimension | ||
_width : int | Dimension | ||
width : Number [read-only] | Dimension |
Method | Defined By | ||
---|---|---|---|
Dimension(width:int, height:int, init:Boolean = true) | Dimension | ||
clone():Object | Dimension | ||
equals(obj:Object):Boolean [override] | Dimension | ||
getClass():Class [override] | Dimension | ||
hashCode():int [override] | Dimension | ||
[static] | Dimension | ||
[static] | Dimension | ||
newDimension3(width:int, height:int):Dimension [static] | Dimension | ||
setSize(width:int, height:int):void | Dimension | ||
setSize2(width:Number, height:Number):void | Dimension | ||
toString():String | Dimension |
Method | Defined By | ||
---|---|---|---|
cloneImpl(o:Object):void | Dimension | ||
initDimension1():void
Initializes this object. | Dimension | ||
initDimension2(d:Dimension):void
Initializes this object. | Dimension | ||
initDimension3(width:int, height:int):void
Initializes this object. | Dimension |
_height | property |
public var _height:int
_width | property |
public var _width:int
height | property |
height:Number
[read-only] public function get height():Number
size | property |
size:Dimension
public function get size():Dimension
public function set size(value:Dimension):void
width | property |
width:Number
[read-only] public function get width():Number
Dimension | () | Constructor |
public function Dimension(width:int, height:int, init:Boolean = true)
Parameters
width:int | |
height:int | |
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.
|
clone | () | method |
public function clone():Object
ReturnsObject |
cloneImpl | () | method |
protected function cloneImpl(o:Object):void
Parameters
o:Object |
equals | () | method |
override public function equals(obj:Object):Boolean
Parameters
obj:Object |
Boolean |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
hashCode | () | method |
override public function hashCode():int
Returnsint |
initDimension1 | () | method |
protected final function initDimension1():void
Initializes this object. See the documentation of the corresponding factory method newDimension1()
for details.
See also
initDimension2 | () | method |
protected final function initDimension2(d:Dimension):void
Initializes this object. See the documentation of the corresponding factory method newDimension2()
for details.
Parameters
d:Dimension |
See also
initDimension3 | () | method |
protected final function initDimension3(width:int, height:int):void
Initializes this object. See the documentation of the corresponding factory method newDimension3()
for details.
Parameters
width:int | |
height:int |
See also
newDimension1 | () | method |
newDimension2 | () | method |
newDimension3 | () | method |
public static function newDimension3(width:int, height:int):Dimension
Parameters
width:int | |
height:int |
Dimension |
setSize | () | method |
public function setSize(width:int, height:int):void
Parameters
width:int | |
height:int |
setSize2 | () | method |
public function setSize2(width:Number, height:Number):void
Parameters
width:Number | |
height:Number |
toString | () | method |
public function toString():String
ReturnsString |