|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface describing graphic objects that can be drawn in a drawing window.
Method Summary | |
int |
bottom()
Return the bottom coordinate of the bounding box of the object |
Pt |
center()
Return the center of the object |
void |
center(Pt p)
Reset the center of the object to be at point p. |
void |
clearOn(DrawingWindow d)
Erase a filled version of this object (in the current mode) on a drawing window |
void |
drawOn(DrawingWindow d)
Draw this object (in the current mode) on a drawing window |
void |
fillOn(DrawingWindow d)
Draw a filled version of this object (in the current mode) on a drawing window |
int |
height()
Return the height of the bounding box of the object |
int |
left()
Return the leftmost coordinate of bounding box of object |
int |
right()
Return the rightmost coordinate of the bounding box of the object |
int |
top()
Return the top coordinate of the bounding box of the object |
int |
width()
Return the width of the bounding box of the object |
Method Detail |
public int height()
public int width()
public int left()
public int right()
public int bottom()
public int top()
public void center(Pt p)
p
- the new center of the objectpublic Pt center()
public void drawOn(DrawingWindow d)
d
- the drawing window to be targetedDrawingWindow.draw(element.Drawable)
,
DrawingWindow.paintMode()
,
DrawingWindow.invertMode()
public void fillOn(DrawingWindow d)
d
- the drawing windowDrawingWindow.fill(element.Drawable)
,
DrawingWindow.paintMode()
,
DrawingWindow.invertMode()
public void clearOn(DrawingWindow d)
d
- the drawing windowDrawingWindow.clear(element.Drawable)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |