Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.sim.gui
Interface Drawable

All Known Subinterfaces:
  Drawable2DNode

All Known Implementing Classes:
  EnnAgent, GisBug, HeatBug, HexaBug, LifeAgent, MouseTrap, SugarAgent

    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.

Version:
  $Revision: 1.3 $ $Date: 2004/11/03 19:50:59 $
Author:
  Nick Collier

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

### draw

    void draw(SimGraphics g)

  Invoked when the object should draw itself

### getX

    int getX()

  Gets the x coordinate of this drawable. Note that this should return the x coordinate in some space, not necessarily a screen coordinate.

### getY

    int getY()

  Gets the y coordinate of the this drawable. Note that this should return the y coordinate in some space, not necessarily a screen coordinate.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD