|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--Opus5.GraphicalObject
|
+--Opus5.Rectangle
A rectangular graphical object.
GraphicalObject| Field Summary | |
protected int |
height
The height of the rectangle. |
protected int |
width
The width of the rectangle. |
| Fields inherited from class Opus5.GraphicalObject |
backgroundColor, center, foregroundColor |
| Fields inherited from interface Opus5.GraphicsPrimitives |
copyright |
| Constructor Summary | |
Rectangle(Point p,
int ht,
int wid)
Constructs a Rectangle with the specified center point,
height and width. |
|
| Method Summary | |
void |
draw()
Draws this rectangle. |
| Methods inherited from class Opus5.GraphicalObject |
erase, moveTo, setPenColor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int height
protected int width
| Constructor Detail |
public Rectangle(Point p,
int ht,
int wid)
Rectangle with the specified center point,
height and width.p - The center point of this rectangle.ht - The height of this rectangle.wid - The width of this rectangle.| Method Detail |
public void draw()
draw in class GraphicalObject
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||