|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--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 | |
<private> void
|
addReference()
This is a private method, just used here as an example |
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 |
int border
Color color
Constructor Detail |
Shape()
Method Detail |
<private> void addReference()
Shape clone()
String getClassName()
Color getColor()
Coordinate getCoords()
void setColor(<Color> color)
color
- The color to set for this Shape
other
- There is no other param, but it can still be documented if optional parameters are used
void setCoords(<Coordinate> coordinates)
coordinates
- The coordinates to set for this Shape
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |