Packagecom.yworks.canvas.geom
Classpublic class Size
InheritanceSize Inheritance Object
Implements IMutableSize

A simple default implementation of a mutable size in 2D coordinate space.



Public Properties
 PropertyDefined By
  height : Number
The height.
Size
  width : Number
The width.
Size
Public Methods
 MethodDefined By
  
Size(width:Number, height:Number)
Creates an instance using the given width and height.
Size
  
create(width:Number, height:Number):Size
[static]
Size
Public Constants
 ConstantDefined By
  EMPTY : ISize
[static] An implementation of ISize with zero size.
Size
  UNBOUND : ISize
[static] An implementation of ISize with infinite bounds
Size
Property Detail
heightproperty
height:Number

The height.


Implementation
    public function get height():Number
    public function set height(value:Number):void
widthproperty 
width:Number

The width.


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
Size()Constructor
public function Size(width:Number, height:Number)

Creates an instance using the given width and height.

Parameters
width:Number
 
height:Number
Method Detail
create()method
public static function create(width:Number, height:Number):Size

Parameters

width:Number
 
height:Number

Returns
Size
Constant Detail
EMPTYConstant
public static const EMPTY:ISize

An implementation of ISize with zero size.

UNBOUNDConstant 
public static const UNBOUND:ISize

An implementation of ISize with infinite bounds