Class Shape

Object
   |
   +--Shape
Direct Known Subclasses:
Circle, Rectangle, Hexagon

class Shape


This is the basic Shape class. It can be considered an abstract class, even though no such thing really existing in JavaScript
Defined in test.js


Field Summary
 int border
          The border of this shape.
 Color color
          The color of this shape
 
Constructor Summary
Shape()
            Construct a new Shape object.
 
Method Summary
 Shape clone()
           Clone this shape
 String getClassName()
           This is an example of a function that is not given as a property of a prototype, but instead it is assigned within a constructor.
 Color getColor()
           Get the color of this shape.
 Coordinate getCoords()
           Get the coordinates of this shape.
 void setColor(<Color> color)
           Set the color for this Shape
 void setCoords(<Coordinate> coordinates)
           Set the coordinates for this Shape

Field Detail

border

int border

color

Color color

Constructor Detail

Shape

Shape()

Method Detail

clone

Shape clone()

getClassName

String getClassName()

getColor

Color getColor()

getCoords

Coordinate getCoords()

setColor

void setColor(<Color> color)

setCoords

void setCoords(<Coordinate> coordinates)


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