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


Field Summary
<private>  int height
          Value to represent the height of the Rectangle
<private>  int width
          Value to represent the width of the Rectangle.
   
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
addReference, getCoords, getColor, setCoords, setColor, clone
 

Field Detail

height

<private> int height

width

<private> int width

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 Sun Apr 17 10:08:53 2005