Packagecom.yworks.bridge.geom
Classpublic class Dimension
InheritanceDimension Inheritance YObject Inheritance Object
Implements Clonable



Public Properties
 PropertyDefined By
  _height : int
Dimension
  height : Number
[read-only]
Dimension
  size : Dimension
Dimension
  _width : int
Dimension
  width : Number
[read-only]
Dimension
Public Methods
 MethodDefined 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
Protected Methods
 MethodDefined By
  
cloneImpl(o:Object):void
Dimension
  
Initializes this object.
Dimension
  
Initializes this object.
Dimension
  
initDimension3(width:int, height:int):void
Initializes this object.
Dimension
Property Detail
_heightproperty
public var _height:int

_widthproperty 
public var _width:int

heightproperty 
height:Number  [read-only]


Implementation
    public function get height():Number
sizeproperty 
size:Dimension


Implementation
    public function get size():Dimension
    public function set size(value:Dimension):void
widthproperty 
width:Number  [read-only]


Implementation
    public function get width():Number
Constructor Detail
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.
Method Detail
clone()method
public function clone():Object

Returns
Object
cloneImpl()method 
protected function cloneImpl(o:Object):void

Parameters

o:Object

equals()method 
override public function equals(obj:Object):Boolean

Parameters

obj:Object

Returns
Boolean
getClass()method 
override public function getClass():Class

Returns
Class
hashCode()method 
override public function hashCode():int

Returns
int
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 
public static function newDimension1():Dimension

Returns
Dimension
newDimension2()method 
public static function newDimension2(d:Dimension):Dimension

Parameters

d:Dimension

Returns
Dimension
newDimension3()method 
public static function newDimension3(width:int, height:int):Dimension

Parameters

width:int
 
height:int

Returns
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

Returns
String