Packagecom.yworks.canvas.geom
Classpublic class ImmutableSize
InheritanceImmutableSize Inheritance Object
Implements ISize

An implementation of an ISize whose state cannot be changed.



Public Properties
 PropertyDefined By
  height : Number
[read-only] Returns the height of this instance.
ImmutableSize
  width : Number
[read-only] Returns the width of this instance.
ImmutableSize
Public Methods
 MethodDefined By
  
ImmutableSize(width:Number, height:Number)
Creates an instance using the given width and height.
ImmutableSize
  
create(width:Number, height:Number):ISize
[static] Creates an immutable instance using the given width and height.
ImmutableSize
Public Constants
 ConstantDefined 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
Property Detail
heightproperty
height:Number  [read-only]

Returns the height of this instance.

An instance of this type will always return the same value.


Implementation
    public function get height():Number
widthproperty 
width:Number  [read-only]

Returns the width of this instance.

An instance of this type will always return the same value.


Implementation
    public function get width():Number
Constructor Detail
ImmutableSize()Constructor
public function ImmutableSize(width:Number, height:Number)

Creates an instance using the given width and height.

Parameters
width:Number — The width.
 
height:Number — The height.
Method Detail
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.

Returns
ISize — A newly created ISize instance.
Constant Detail
EMPTYConstant
public static const EMPTY:ISize

An immutable instance that is treated as an empty size. Both width and height are always 0.0.

UNBOUNDConstant 
public static const UNBOUND:ISize

An immutable instance that is treated as an unbound size. Both width and height are always Number.MaxValue.