|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webmngr.web.DefaultMapElement | +--webmngr.web.ManagedElement
A ManagedElement is a managed element in a map which represents the status of an specific
element. It stores this status and also images to be associated with each kind of status
Fields inherited from class webmngr.web.DefaultMapElement |
BACKGROUND, BOTTOM, CRITIC_HIGH, CRITIC_LITTLE, CRITIC_MAXIMUM, CRITIC_MEDIUM, CRITIC_MINIMAL, CRITIC_NONE, criticality, DEFAULT_ID, dimension, drawPlane, id, idCount, imgObserver, link, mapElements, MIDDLE, parent, position, status, STATUS_DOWN, STATUS_INDEFINITE, STATUS_UP, tmpObs, TOP, visited |
Constructor Summary | |
ManagedElement()
Default Constructor |
Method Summary | |
void |
draw(java.awt.Image img)
Draws this ManagedElement on the map |
int |
getCriticality()
Gets this managedElement criticality by asking the WebManager monitor |
java.awt.Dimension |
getDimension()
Gets this managedElement dimension |
java.lang.String |
getLink()
Gets the Link to where this MapElement will take anyone who clicks on its image |
java.awt.Point |
getPixelPosition()
Gets the exact location of this MapElement image on the screen in pixels, not in % |
int |
getStatus()
Gets the Status of this element |
StatusImage |
getStatusImage()
Gets this ManagedElement statusImage |
void |
setStatusImage(StatusImage si)
Sets this ManagedElement statusImage |
void |
setType(java.lang.String type)
|
Methods inherited from class webmngr.web.DefaultMapElement |
addLabel, addManagedElement, addMapElement, addMapImage, addMapLine, addSubMap, getAllElements, getDrawPlane, getID, getImageObserver, getMapElements, getParent, getPosition, setCriticality, setDefault, setDrawPlane, setID, setImageObserver, setLink, setParent, setPosition, setStatus, setVisited, setX, setY, visited |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ManagedElement()
Method Detail |
public java.awt.Point getPixelPosition()
DefaultMapElement
getPixelPosition
in class DefaultMapElement
webmngr.web.DefaultMapElement
public int getCriticality()
getCriticality
in class DefaultMapElement
webmngr.web.DefaultMapElement
public int getStatus()
DefaultMapElement
getStatus
in class DefaultMapElement
webmngr.web.DefaultMapElement
public void setType(java.lang.String type)
public java.lang.String getLink()
DefaultMapElement
getLink
in class DefaultMapElement
webmngr.web.DefaultMapElement
public java.awt.Dimension getDimension()
getDimension
in class DefaultMapElement
public void setStatusImage(StatusImage si)
si
- StatusImage to represent this managedElement statuspublic StatusImage getStatusImage()
public void draw(java.awt.Image img)
draw
in class DefaultMapElement
img
- Source imagecomp
- A component, e.g, a frame, from where the image was obtained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |