hexIT
Interface Drawable

All Known Implementing Classes:
DrawableAdapter

public interface Drawable

A drawable object is any object that can be drawn to the screen. This means that it has an image associated with it, that is used when representing the object on the hex board. All objects to be drawn on the board should implement this interface; also, ImageTools can be used to load images from disk. One can also use DrawableAdapter as a quick way to instantiate a drawable object.


Method Summary
 java.awt.Image getImage()
          Returns the image represented by this drawable object.
 void setImage(java.awt.Image new_image)
          Sets the image of this object to the specified image.
 

Method Detail

getImage

public java.awt.Image getImage()
Returns the image represented by this drawable object. Returns null if currently no image set for this object.


setImage

public void setImage(java.awt.Image new_image)
Sets the image of this object to the specified image.