|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webmngr.web.DefaultMapElement | +--webmngr.web.MapLabel
A MapLabel is a String that can be printed on a map.
It can be a link or not.
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 | |
MapLabel()
Default Constructor |
Method Summary | |
void |
draw(java.awt.Image img)
Draws this Label |
java.awt.Color |
getColor()
Gets the color of the message to be drawn, the default color is black |
java.awt.Dimension |
getDimension()
Gets this label dimension |
java.awt.Font |
getFont()
Gets the Font of this label message |
java.lang.String |
getLabel()
Gets this label message |
void |
setColor(java.lang.String c)
Sets the color of the message to be drawn |
void |
setFont(java.awt.Font f)
Sets the Font of this label message |
void |
setValue(java.lang.String msg)
Sets this label message |
Methods inherited from class webmngr.web.DefaultMapElement |
addLabel, addManagedElement, addMapElement, addMapImage, addMapLine, addSubMap, getAllElements, getCriticality, getDrawPlane, getID, getImageObserver, getLink, getMapElements, getParent, getPixelPosition, getPosition, getStatus, 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 MapLabel()
Method Detail |
public java.lang.String getLabel()
public void setValue(java.lang.String msg)
the
- new messagepublic java.awt.Font getFont()
public void setFont(java.awt.Font f)
f
- The new font of this labelpublic java.awt.Color getColor()
public void setColor(java.lang.String c)
c
- the new colorpublic java.awt.Dimension getDimension()
getDimension
in class DefaultMapElement
public void draw(java.awt.Image img)
draw
in class DefaultMapElement
img
- Source image where this Label must be drawncomp
- 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 |