Class Rectangle

Object
   |
   +--Shape
         |
         +--Rectangle
Direct Known Subclasses:
Square

class Rectangle
extends Shape


A basic rectangle class, inherits from Shape. This class could be considered a concrete implementation class
Author: Gabriel Reid
See:

Defined in test.js


 
Fields inherited from class Shape
color, border
 
Constructor Summary
Rectangle(<int> width, <int> height )
            Create a new Rectangle instance.
 
Method Summary
 int getArea()
           Get the value for the total area of this Rectangle
 String getClassName()
           Get the type of this object.
 int getHeight()
           Get the value of the height for the Rectangle.
 int getWidth()
           Get the value of the width for the Rectangle
 void setHeight(<int> height)
           Set the height value for this Rectangle.
 void setWidth(<int> width)
           Set the width value for this Rectangle.
 
Methods inherited from class Shape
getCoords, getColor, setCoords, setColor, clone
 

Constructor Detail

Rectangle

Rectangle(<int> width, <int> height )

Method Detail

getArea

int getArea()

getClassName

String getClassName()

getHeight

int getHeight()

getWidth

int getWidth()

setHeight

void setHeight(<int> height)

setWidth

void setWidth(<int> width)


Documentation generated by JSDoc on Mon Mar 2 10:39:07 2009