|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Drawable
Interface for those objects in 2D spaces that wish to be drawn on a DisplaySurface by a Displayable. Typically agents will be implement this interface and thus when added to a space can be drawn when the space is drawn. Integers and other Numbers can be mapped to colors and drawn that way, so this interface does not apply to them.
| Method Summary | |
|---|---|
void |
draw(SimGraphics g)
Invoked when the object should draw itself |
int |
getX()
Gets the x coordinate of this drawable. |
int |
getY()
Gets the y coordinate of the this drawable. |
| Method Detail |
|---|
void draw(SimGraphics g)
int getX()
int getY()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||