|
|||||||
| 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 | |
|---|---|
double |
getHeight()
Gets the height of the shape. |
double |
getWidth()
Gets the width of the shape. |
double |
getX()
Gets the leftmost x-position of the shape. |
double |
getY()
Gets the topmost y-position of the shape. |
void |
paintShape(Graphics2D g2)
Paints the shape |
| Method Detail |
|---|
double getHeight()
double getWidth()
double getX()
double 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 | ||||||