|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecthexIT.DrawableAdapter
A DrawableAdapater is a simple implementation of the Drawable interface. It can be extended to make easily custom drawable objects.
Constructor Summary | |
DrawableAdapter()
Creates a drawable adapter with no associated image. |
|
DrawableAdapter(java.lang.String new_imgFilename)
Creates a new drawable adapter loading the specified image file as this drawable object's image. |
Method Summary | |
java.awt.Image |
getImage()
Get the image associated with this drawable object. |
void |
setImage(java.awt.Image new_img)
Set the image associated with this drawable object. |
void |
setImage(java.lang.String filename)
Set the image associated with this drawable object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DrawableAdapter(java.lang.String new_imgFilename)
public DrawableAdapter()
Method Detail |
public java.awt.Image getImage()
getImage
in interface Drawable
public void setImage(java.awt.Image new_img)
setImage
in interface Drawable
public void setImage(java.lang.String filename)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |