Package | com.yworks.canvas.geom |
Class | public class ImmutableSize |
Inheritance | ImmutableSize Object |
Implements | ISize |
ISize
whose state cannot
be changed.
Property | Defined By | ||
---|---|---|---|
height : Number [read-only]
Returns the height of this instance. | ImmutableSize | ||
width : Number [read-only]
Returns the width of this instance. | ImmutableSize |
Method | Defined By | ||
---|---|---|---|
ImmutableSize(width:Number, height:Number)
Creates an instance using the given width and height. | ImmutableSize | ||
[static]
Creates an immutable instance using the given width and height. | ImmutableSize |
Constant | Defined By | ||
---|---|---|---|
EMPTY : ISize [static]
An immutable instance that is treated as an empty size. | ImmutableSize | ||
UNBOUND : ISize [static]
An immutable instance that is treated as an unbound size. | ImmutableSize |
height | property |
height:Number
[read-only] Returns the height of this instance.
An instance of this type will always return the same value.
public function get height():Number
width | property |
width:Number
[read-only] Returns the width of this instance.
An instance of this type will always return the same value.
public function get width():Number
ImmutableSize | () | Constructor |
public function ImmutableSize(width:Number, height:Number)
Creates an instance using the given width and height.
Parameterswidth:Number — The width.
| |
height:Number — The height.
|
create | () | method |
public static function create(width:Number, height:Number):ISize
Creates an immutable instance using the given width and height.
Parameters
width:Number — The width.
| |
height:Number — The height.
|
ISize — A newly created ISize instance.
|
EMPTY | Constant |
public static const EMPTY:ISize
An immutable instance that is treated as an empty size. Both width and height
are always 0.0
.
UNBOUND | Constant |
public static const UNBOUND:ISize
An immutable instance that is treated as an unbound size. Both width and height
are always Number.MaxValue
.