|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webmngr.web.DefaultMapElement | +--webmngr.web.CompositeMapElement
Title: Description: Copyright: Copyright (c) 2002 Company:
Field Summary | |
protected java.awt.Image |
image
|
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 | |
CompositeMapElement()
|
Method Summary | |
void |
addManagedElement(ManagedElement newElement)
Adds a new ManagedElement to the list of elements that are part of this DefaultMapElement |
void |
addMapElement(MapElement newElement)
Adds a new MapElement to the list of elements that are part of this DefaultMapElement |
void |
addMapImage(MapImage newElement)
Adds a new MapMapImage to the list of elements that are part of this DefaultMapElement |
void |
addMapLine(MapLine newElement)
Adds a new MapLine to the list of elements that are part of this DefaultMapElement |
void |
addSubMap(NetMap newElement)
Adds a new MapSubMap to the list of elements that are part of this DefaultMapElement |
void |
draw(java.awt.Image img)
Draws this MapElement on the map |
void |
drawMapElements(java.awt.Image img)
Metodo que desenha todos os filhos desse Composite. |
java.awt.Dimension |
getDimension()
Gets this managedElement dimension |
java.awt.Image |
getImage()
Gets this MapElement's image |
java.util.Iterator |
getMapElements()
Returns the MapElements present in this DefaultMapElement |
int |
getStatus()
Gets the status of this NetMap, comparing the criticalities of its sub-elements with problems, discovering what is the worst case and then seeing if this criticality is greater than the propagation level of this NetMap |
void |
setImageFile(java.lang.String fileName)
Sets the file of the image that will represent this mapElement |
Methods inherited from class webmngr.web.DefaultMapElement |
addLabel, getAllElements, getCriticality, getDrawPlane, getID, getImageObserver, getLink, getParent, getPixelPosition, 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 |
Field Detail |
protected java.awt.Image image
Constructor Detail |
public CompositeMapElement()
Method Detail |
public void addMapElement(MapElement newElement)
addMapElement
in class DefaultMapElement
newElement
- the new MapElement to be addedpublic void addManagedElement(ManagedElement newElement)
addManagedElement
in class DefaultMapElement
newElement
- the new ManagedElement to be addedpublic void addMapImage(MapImage newElement)
addMapImage
in class DefaultMapElement
newElement
- the new MapImage to be addedpublic void addMapLine(MapLine newElement)
addMapLine
in class DefaultMapElement
newElement
- the new MapLine to be addedpublic void addSubMap(NetMap newElement)
addSubMap
in class DefaultMapElement
newElement
- the new SubMap to be addedpublic java.util.Iterator getMapElements()
getMapElements
in class DefaultMapElement
public void draw(java.awt.Image img)
DefaultMapElement
draw
in class DefaultMapElement
webmngr.web.DefaultMapElement
img
- Source imagecomp
- A component, e.g, a frame, from where the image was obtainedpublic int getStatus()
getStatus
in class DefaultMapElement
public java.awt.Dimension getDimension()
getDimension
in class DefaultMapElement
public java.awt.Image getImage()
public void setImageFile(java.lang.String fileName)
fileName
- the file name of a file present on the
images directory (/Webmngr/web/images)public void drawMapElements(java.awt.Image img)
img
- Imagem fonte
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |