|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jdraw.graphicobjects.GraphicObject | +--jdraw.graphicobjects.SizedGraphicObject
A graphic object with width and height.
Field Summary | |
private int |
height
The height of this object. |
private int |
width
The width of this object. |
Fields inherited from class jdraw.graphicobjects.GraphicObject |
|
Constructor Summary | |
SizedGraphicObject(int x,
int y,
Color color,
int width,
int height)
Creates a new SizedGraphicObject with specified position, color, width and height. |
Method Summary | |
Rectangle |
getBoundingBox()
Returns the bounding box of this graphic object. |
int |
getHeight()
Returns the height of this object. |
int |
getWidth()
Returns the width of this object. |
Methods inherited from class jdraw.graphicobjects.GraphicObject |
getColor, getCursor, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getFriendlyName, getX, getY, paint, updateCachedData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int width
private int height
Constructor Detail |
public SizedGraphicObject(int x, int y, Color color, int width, int height)
SizedGraphicObject
with specified position, color, width and height.
Method Detail |
public Rectangle getBoundingBox()
getBoundingBox
in class GraphicObject
public int getWidth()
public int getHeight()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |