Class IWSize

Extends IWClonable.

A class representing the size of a rectangle.


Constructor Summary
IWSize(width, height)
            Creates a new size object with the specified dimension.
 
Method Summary
 IWSize clone()
           Returns a new instance of this object.
 number compareTo(other)
           Returns 1 if this size is larger than the other one, -1 if it is smaller and 0 if both sizes are the same.
 boolean containsPoint(point)
           Checks whether the specified point stands inside or outside this size.
 IWSize divide(scalar)
           Divides size by a scalar
 boolean equals(other)
           Checks whether the specified size and this one are the same.
 IWPoint getCenter()
           Interprets the size as a rectangle from (0, 0) to (w, h) and returns the center of it.
 number getHeight()
           Returns the height value.
 number getWidth()
           Returns the width value.
multiplicate(scalar)
          
 IWSize multiply(scalar)
           Multiplicates size by a scalar
 void setHeight(height)
           Sets the height value.
 void setWidth(width)
           Sets the width.
 String toString()
           Returns a string representation of this size in the form width x height.
 
Constructor Detail

IWSize

IWSize(width, height)

Method Detail

clone

IWSize clone()

compareTo

number compareTo(other)

containsPoint

boolean containsPoint(point)

divide

IWSize divide(scalar)

equals

boolean equals(other)

getCenter

IWPoint getCenter()

getHeight

number getHeight()

getWidth

number getWidth()

multiplicate

multiplicate(scalar)

multiply

IWSize multiply(scalar)

setHeight

void setHeight(height)

setWidth

void setWidth(width)

toString

String toString()

Source-Code Copyright 2007-2016 infoware GmbH - Documentation generated on Tue Nov 29 2022 14:20:15 GMT+0100 (MEZ)