Modifier and Type | Method and Description |
---|---|
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(java.awt.Graphics2D g2)
Paints the shape.
|
java.lang.String |
toString()
Yields a description of this shape.
|
int getX()
int getY()
int getWidth()
int getHeight()
void paintShape(java.awt.Graphics2D g2)
g2
- the graphics objectjava.lang.String toString()
toString
in class java.lang.Object