Class IWSize

Extends IWCloneable.

A class representing the size of a rectangle.

Author: BRE

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.
 int compareTo(other)
           Compares values and returns an int which tells if the values compare less than, equal, or greater than.
 boolean containsPoint(point)
           Checks whether the specified point stands inside or outside this size.
 void divide(scalar)
           Divides size with a scalar
 boolean equals(other)
           Checks whether the specified size and this one are the same.
 int getHeight()
           Returns the height value.
 int getWidth()
           Returns the width value.
 void multiplicate(scalar)
           Multiplicates size with a scalar
 void setHeight(height)
           Sets the height value.
 void setWidth(width)
           Sets the width value.
 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

int compareTo(other)

containsPoint

boolean containsPoint(point)

divide

void divide(scalar)

equals

boolean equals(other)

getHeight

int getHeight()

getWidth

int getWidth()

multiplicate

void multiplicate(scalar)

setHeight

void setHeight(height)

setWidth

void setWidth(width)

toString

String toString()

Source-Code Copyright 2007-2009 infoware GmbH - Documentation generated by JsDoc Toolkit 1.4.1 on Tue Nov 28 2017 09:51:52 GMT+0100 (MEZ)