|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Drawable
Indicates an object which can be drawn in a PZWindow.
| Method Summary | |
|---|---|
boolean |
contains(int x,
int y)
Whether these x, y coordinates fall are contained by the object |
void |
drag(int x,
int y)
Called when the object is dragged to position x, y |
void |
drawBeforeObject(java.awt.Graphics2D gfx)
Graphics to be drawn before drawObject() is called |
void |
drawObject(java.awt.Graphics2D gfx)
Draw this object |
boolean |
isDrawn()
Whether this object has been drawn this redraw cycle |
boolean |
isHovered()
Whether this object currently has the mouse over it |
boolean |
isSelected()
Whether this object is currently selected |
void |
setHovered(boolean hovering)
Set whether this object currently has the mouse over it |
void |
setSelected(boolean selected)
Set whether this object is currently selected |
void |
unsetDrawn()
Flag this object as undrawn for the current redraw cycle |
| Method Detail |
|---|
void drawBeforeObject(java.awt.Graphics2D gfx)
void drawObject(java.awt.Graphics2D gfx)
boolean contains(int x,
int y)
boolean isDrawn()
void unsetDrawn()
boolean isSelected()
void setSelected(boolean selected)
boolean isHovered()
void setHovered(boolean hovering)
void drag(int x,
int y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||