|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Subject | +--Shape | +--Square
Constructor Summary | |
Square()
|
|
Square(java.awt.Color c,
int width,
int x,
int y)
|
Method Summary | |
void |
display(java.awt.Graphics g)
|
int |
getWidth()
|
void |
setWidth(int w)
|
java.lang.String |
toString()
|
Methods inherited from class Shape |
getColor,
getX,
getY,
setColor,
setPosition,
setX,
setY |
Methods inherited from class Subject |
attachObserver,
detachObserver,
notifyObserver |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Square()
public Square(java.awt.Color c, int width, int x, int y)
Method Detail |
public void setWidth(int w)
public int getWidth()
public java.lang.String toString()
public void display(java.awt.Graphics g)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |