Class Index | File Index

Classes


Class Rectangle

Represents a rectangle as defined by the points (x, y) and (x+width, y+height).
Defined in: Rectangle.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Rectangle(x, y, width, height)
Constructs a new Rectangle instance.
Field Summary
Field Attributes Field Name and Description
 
Height.
 
Width.
 
x
X position.
 
y
Y position.
Method Summary
Method Attributes Method Name and Description
 
Returns a clone of this Rectangle.
 
Returns a string representation of this object.
Class Detail
Rectangle(x, y, width, height)
Constructs a new Rectangle instance.
Parameters:
x
X position. Default is 0.
y
Y position. Default is 0.
width
Width. Default is 0.
height
Height. Default is 0.
Field Detail
height
Height.

width
Width.

x
X position.

y
Y position.
Method Detail
clone()
Returns a clone of this Rectangle.

toString()
Returns a string representation of this object.

Documentation generated by JsDoc Toolkit 2.3.2 on Sun Feb 13 2011 22:46:01 GMT-0700 (MST)