|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Shape
A shape that can be drawn on a canvas.
Method Summary | |
---|---|
int |
getHeight()
Gets the height of the shape. |
int |
getWidth()
Gets the width of the shape. |
int |
getX()
Gets the leftmost x-position of the shape. |
int |
getY()
Gets the topmost y-position of the shape. |
void |
paintShape(Graphics2D g2)
Paints the shape |
Method Detail |
---|
int getHeight()
int getWidth()
int getX()
int getY()
void paintShape(Graphics2D g2)
g2
- the graphics object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |