|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ShapeOnScreen
A ShapeOnScreen models a Shape to be painted at a given position on a Screen.
Shape
,
Screen
Constructor Summary | |
ShapeOnScreen(Shape shape,
int x,
int y)
Construct a ShapeOncreen. |
Method Summary | |
Shape |
getShape()
What Shape does this ShapeOnScreen represent? |
int |
getX()
The current x coordinate of this ShapeOnScreen. |
int |
getY()
The current y coordinate of this ShapeOnScreen. |
static void |
main(String[] args)
Unit test. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeOnScreen(Shape shape, int x, int y)
shape
- the Shapex
- its x coordinatey
- its y coordinateMethod Detail |
public Shape getShape()
public int getX()
public int getY()
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |