|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webmngr.web.StatusImage
Class that associates status values to images
Constructor Summary | |
StatusImage()
Default Constructor |
|
StatusImage(MapElement parent,
java.awt.image.ImageObserver imgObserver)
Constructor |
Method Summary | |
void |
draw(int status,
java.awt.Image img)
Draws this StatusImage on its parent |
java.awt.Dimension |
getDefDimension()
Gets this statusImage defautl dimension |
java.awt.Dimension |
getDimension(int status)
Gets the dimension of the image used to represent a certain status |
java.awt.Image |
getImage(int status)
Gets the image which represents this element on the map according to its status |
java.awt.image.ImageObserver |
getImageObserver()
Gets this MapElement ImageObserver |
MapElement |
getParent()
Gets this StatusImage parent |
MapPoint |
getPosition()
Gets this StatusImage position relative to its parent |
void |
setDefDimension(java.awt.Dimension def)
Sets a default dimension to this StatusImage |
void |
setImageFile(java.lang.String fileName,
int status)
Sets an image that represents one of the status of an element. |
void |
setImageObserver(java.awt.image.ImageObserver io)
Sets this MapElement ImageObserver |
void |
setParent(MapElement parent)
Sets this StatusImage parent |
void |
setPosition(MapPoint pos)
Sets this StatusImage position relative to its parent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StatusImage()
public StatusImage(MapElement parent, java.awt.image.ImageObserver imgObserver)
parent
- the element where this StatusImage must be placedimgObserver
- imageObserver to be used to draw this statusImageMethod Detail |
public void setImageFile(java.lang.String fileName, int status)
img
- The image to be associated with this statusstatus
- the status value that will be represented by imgpublic java.awt.Image getImage(int status)
public java.awt.Dimension getDimension(int status)
status
- the status associated with an image
whose dimension is wantedpublic void setParent(MapElement parent)
parent
- MapElement that owns this StatusImagepublic MapElement getParent()
public void setImageObserver(java.awt.image.ImageObserver io)
io
- ImageObserver used to draw this imagepublic java.awt.image.ImageObserver getImageObserver()
public void setDefDimension(java.awt.Dimension def)
def
- Default Dimensionpublic java.awt.Dimension getDefDimension()
public void setPosition(MapPoint pos)
pos
- relative positionpublic MapPoint getPosition()
public void draw(int status, java.awt.Image img)
status
- an status valueimg
- Image associated with "status"
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |