|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webmngr.web.DefaultMapElement | +--webmngr.web.MapLine
A MapLine is any kind of line linking two positions in 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 | |
MapLine()
Default Constructor |
Method Summary | |
void |
draw(java.awt.Image img)
Draws this MapLine |
java.awt.Color |
getColor()
Gets the color of the line to be drawn, the default color is black |
java.awt.Dimension |
getDimension()
Gets this line dimension This dimension is calculated according to the littlest rectangle that contains this line target and source |
java.awt.Point |
getPixelPosition()
Gets this line PixelPosition, with its lowest x and y coordinates |
MapPoint |
getSource()
Gets one of the endings of this MapLine |
float |
getStrokeWidth()
Gets the line width |
MapPoint |
getTarget()
Gets one of the endings of this MapLine |
void |
setColor(java.lang.String c)
Sets the color of the line to be drawn |
void |
setSourceID(java.lang.String sourceID)
|
void |
setStrokeWidth(float width)
Sets the line width |
void |
setTargetID(java.lang.String targetID)
|
Methods inherited from class webmngr.web.DefaultMapElement |
addLabel, addManagedElement, addMapElement, addMapImage, addMapLine, addSubMap, getAllElements, getCriticality, getDrawPlane, getID, getImageObserver, getLink, getMapElements, getParent, 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 MapLine()
Method Detail |
public MapPoint getTarget()
public MapPoint getSource()
public void setTargetID(java.lang.String targetID)
public void setSourceID(java.lang.String sourceID)
public java.awt.Color getColor()
public void setColor(java.lang.String c)
c
- the new colorpublic float getStrokeWidth()
public void setStrokeWidth(float width)
width
- the new line widthpublic java.awt.Point getPixelPosition()
getPixelPosition
in class DefaultMapElement
public java.awt.Dimension getDimension()
getDimension
in class DefaultMapElement
webmngr.web.DefaultMapElement
public void draw(java.awt.Image img)
draw
in class DefaultMapElement
img
- Source image where this NetMap 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 |