|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webmngr.web.DefaultMapElement | +--webmngr.web.MapImage | +--webmngr.web.NetMap
A NetMap is at the same time a Map with elements to be drawn and also a DefaultMapElement, that is, a sub-map, that has a representation to be displayed on the screen.
Fields inherited from class webmngr.web.MapImage |
DOWN, image, label, LEFT, margin, OTHER, RIGHT, UP |
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 |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
NetMap()
Default Constructor |
Method Summary | |
void |
addMapElement(MapElement newElement)
Add a new MapElement to the list of elements that are part of this DefaultMapElement |
java.awt.Image |
draw()
Draws all the elements of this Map |
void |
draw(java.awt.Image img)
Draws this netMap representation in another map |
java.util.Vector |
getAllElements()
|
java.util.Iterator |
getAllMapElements()
|
java.awt.Color |
getBackgroundColor()
Sets the color of this Map background |
java.awt.Image |
getBackgroundImage()
Returns the background Image of this NetMap |
java.awt.Dimension |
getBackgroundSize()
Gets the size of this NetMap background image |
int |
getHeight()
Gets this NetMap Height |
int |
getPropagationLevel()
Returns the propagation Level of this NetMap. |
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 |
int |
getWidth()
Gets this NetMap Width |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
Provides an image Update on this Map |
void |
setBackgroundColor(java.lang.String c)
Sets the color of this Map background |
void |
setBackgroundSize(java.awt.Dimension size)
Sets the size of this Map background image |
void |
setHeight(int height)
Sets this NetMap Height |
void |
setPropagationLevel(int newValue)
Sets a new propagation Level for this NetMap. |
void |
setStatusImage(StatusImage si)
Sets this NetMap StatusImage |
void |
setWidth(int width)
Sets this NetMap Width |
Methods inherited from class webmngr.web.MapImage |
getDimension, getImage, setDefMapImage, setImageFile, setLabel |
Methods inherited from class webmngr.web.DefaultMapElement |
addLabel, addManagedElement, addMapImage, addMapLine, addSubMap, getCriticality, getDrawPlane, getID, getImageObserver, getLink, getMapElements, 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 |
Methods inherited from interface webmngr.web.NavigationMap |
getMapElements |
Constructor Detail |
public NetMap()
Method Detail |
public void addMapElement(MapElement newElement)
addMapElement
in class DefaultMapElement
newElement
- the new MapElement to be addedpublic int getPropagationLevel()
public void setPropagationLevel(int newValue)
newValue
- the new value for the propagationLevel.public java.awt.Image getBackgroundImage()
public java.awt.Dimension getBackgroundSize()
public void setWidth(int width)
width
- Width valuepublic int getWidth()
public void setHeight(int height)
width
- height valuepublic int getHeight()
public void setStatusImage(StatusImage si)
si
- this NetMap StatusImagepublic void setBackgroundSize(java.awt.Dimension size)
newSize
- the new size of the backgroundpublic void setBackgroundColor(java.lang.String c)
c
- new colorpublic java.awt.Color getBackgroundColor()
c
- new colorpublic void draw(java.awt.Image img)
draw
in class MapImage
img
- Source image where this NetMap must be drawncomp
- A component, e.g, a frame, from where the image was obtainedpublic java.awt.Image draw()
draw
in interface NavigationMap
public int getStatus()
getStatus
in interface NavigationMap
getStatus
in class DefaultMapElement
public java.util.Vector getAllElements()
getAllElements
in class DefaultMapElement
public java.util.Iterator getAllMapElements()
getAllMapElements
in interface NavigationMap
public boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
imageUpdate
in interface java.awt.image.ImageObserver
ImageObserver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |