|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.nms.mapui.MapSymbolComponent
com.adventnet.nms.mapui.MapContainerComponent
public class MapContainerComponent
A MapContainerComponent is one of the core objects of Map APIs. It is
an object having a graphical representation that can be displayed on the
client map canvas and is capable of interacting with the user. This object
inherits all the basic functionalities of MapSymbolComponent. In addition to this,
the map container object is capable of encapsulating child map symbols into
it (i.e) the map container object as the name suggests is a light weight
component very similar to a java.awt.Container component in
functionality. Each container object can have its own layout associated for
its children. For example, a map can be constructed with four or five container
objects in it each with different layouts. MapLinkComponent's across map containers
is also possible. And a map container component can contain another map container component in turn.
Web NMS uses the MapContainerComponent object as a graphical representation of the ManagedObject. A typical managed object could be the nodes, switches, routers, etc in the network. Or even the cards and slots of the router could be the managed objects. Whatever be the case, once a map container gets associated with a managed object, the MapServer provides the MapContainerComponent with its inherent capability of automatically reflecting the current status of the associated managed object. MapModel is a subclass of the MapContainerComponent class.
MapModel,
MapSymbolComponent| Field Summary |
|---|
| Fields inherited from class com.adventnet.nms.mapui.MapSymbolComponent |
|---|
anchored, dim, flash, groupName, iconName, label, mapHeight, mapName, mapWidth, menuName, name, objName, objType, objTypes, p, selected, status, userProperties, virtHeight, virtWidth, virtX, virtY, webNMS |
| Constructor Summary | |
|---|---|
MapContainerComponent()
A Default constructor which initializes all properties to their default values. |
|
| Method Summary | |
|---|---|
boolean |
addLink(MapLinkComponent childLink)
Adds the given Maplink into the container . |
boolean |
addSymbol(MapSymbolComponent childSymbol)
Adds the given MapSymbolComponent into the container. |
java.lang.Object |
clone()
Returns a new MapSymbolComponent object which is a clone of this MapSymbolComponent. |
boolean |
deleteLink(MapLinkComponent childSymbol)
Deletes the given Maplink from the container . |
boolean |
deleteLink(java.lang.String childLinkName)
Deletes the Maplink identified by the given name from the container. |
boolean |
deleteSymbol(MapSymbolComponent childSymbol)
Deletes the child MapSymbolComponent present in this container. |
boolean |
deleteSymbol(java.lang.String childSymbolName)
Deletes the child MapSymbolComponent present in this container given its name. |
boolean |
getContainment()
Returns the value of the containment property of the container. |
java.lang.String |
getCurrentTopology()
Returns the value of the currentTopology property. |
java.util.Properties |
getCurrentTopologyProperties()
Returns the current topology properties value. |
java.lang.String |
getLayout()
Deprecated. Alternate method to use is getCurrentTopology() |
MapLinkComponent |
getLink(int position)
Returns the MapLinkComponent Object present in this container at specified index . |
MapLinkComponent |
getLinkByName(java.lang.String childLinkName)
Returns the child Map Link Object present in this container given its name. |
int |
getLinkCount()
Returns the number of Map links present in this container. |
java.util.Vector |
getLinks()
Returns a Vector of MapLinks present in this Map container. |
java.util.Properties |
getProperties()
Returns the properties of the MapContainerComponent in the form of key-value pairs. |
java.lang.String |
getProperty(java.lang.String str)
Returns the value of given property identified by the argument. |
MapSymbolComponent |
getSymbol(int position)
Returns the child MapSymbolComponent Object present in this container at specified index . |
MapSymbolComponent |
getSymbolByName(java.lang.String childSymbolName)
Gets the child MapSymbolComponent present in this container given its name. |
int |
getSymbolCount()
Returns the number of Map Symbols present in this container. |
java.util.Vector |
getSymbols()
Returns a Vector of MapSymbols present in this Map container. |
java.lang.String |
getTopology()
Returns the value of the topology property of this container. |
boolean |
moveLinkTo(MapLinkComponent link,
int index)
Moves the given child link to the specified index. |
boolean |
moveSymbolTo(MapSymbolComponent symb,
int index)
Moves the given child symbol to the specified index. |
void |
setContainment(boolean value)
Sets the value of the containment property. |
void |
setCurrentTopology(java.lang.String s)
Sets the value of the currentTopology property. |
void |
setLayout(java.lang.String s)
Deprecated. Alternate method to use is setCurrentTopology(String) |
void |
setProperties(java.util.Properties prop)
Sets the given set of properties over the map container. |
void |
setTopology(java.lang.String s)
Sets the value of the topology property of this container. |
| Methods inherited from class com.adventnet.nms.mapui.MapSymbolComponent |
|---|
addObjTypes, downInStatusImage, getAnchored, getConnectedLinks, getD0, getGroupName, getHeight, getIconName, getIntObjType, getKey, getKeyName, getLabel, getLabelSize, getMapHeight, getMapName, getMapWidth, getMenuName, getName, getObjName, getObjType, getP0, getParent, getParentName, getPropForm, getPropForm, getSelected, getSeverityNames, getStatus, getStatusColor, getStatusInt, getStrObjType, getUserProperties, getUserProperty, getWebNMS, getWidth, getX, getY, PropAction, removeConnectedLink, removeUserProperty, setAnchored, setConnectedLink, setGroupName, setHeight, setIconName, setLabel, setLabelSize, setMapHeight, setMapName, setMapWidth, setMenuName, setName, setObjName, setObjType, setParameter, setParent, setParentName, setSelected, setStatus, setUserProperty, setValues, setWebNMS, setWidth, setX, setY, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapContainerComponent()
| Method Detail |
|---|
public void setContainment(boolean value)
value - the boolean value which is set to the containment property.getContainment()public boolean getContainment()
setContainment(boolean)public java.lang.String getTopology()
Default value of this property is grid.
String representing the Topology.AutoLayout.getName(),
GridLayout,
RingLayout,
setTopology(java.lang.String)public java.lang.String getCurrentTopology()
setCurrentTopology(java.lang.String)public void setTopology(java.lang.String s)
s - a String that is to be the topology for this container.AutoLayout.getName(),
GridLayout,
getTopology()public void setCurrentTopology(java.lang.String s)
s - a String specifying the current topology value to be set.getCurrentTopology()public void setLayout(java.lang.String s)
s - a String specifying the layout valuesetCurrentTopology(String),
getLayout()public java.lang.String getLayout()
getCurrentTopology(),
setLayout(java.lang.String)
public boolean moveSymbolTo(MapSymbolComponent symb,
int index)
symb - the MapSymbolComponent object that is to be moved.index - an int specifying the position to which the symbol is to be moved.
public boolean moveLinkTo(MapLinkComponent link,
int index)
link - the MapLinkComponent object that is to be moved.index - an int specifying the position to which the link is to be moved.
public java.lang.Object clone()
MapSymbolComponent
clone in class MapSymbolComponentpublic java.util.Vector getLinks()
public boolean addLink(MapLinkComponent childLink)
childLink - the MapLinkComponent object that is to be added to this Map container.
public boolean deleteLink(MapLinkComponent childSymbol)
childSymbol - the MapLinkComponent object that is to be deleted.
public boolean deleteLink(java.lang.String childLinkName)
childLinkName - the name of the MapLinkComponent object that is to be deleted.
public MapLinkComponent getLinkByName(java.lang.String childLinkName)
childLinkName - the name of the link that is to be fetched.
public int getLinkCount()
public MapLinkComponent getLink(int position)
position - an int specifying the position from which the MapLinkComponent is to be fetched.
public java.util.Vector getSymbols()
public boolean addSymbol(MapSymbolComponent childSymbol)
childSymbol - the MapSymbolComponent that is to be added.
public boolean deleteSymbol(java.lang.String childSymbolName)
childSymbolName - the name of the MapSymbolComponent that is to be deleted.
public boolean deleteSymbol(MapSymbolComponent childSymbol)
childSymbol - the MapSymbolComponent that is to be deleted.
public MapSymbolComponent getSymbolByName(java.lang.String childSymbolName)
childSymbolName - the name of the MapSymbolComponent that is to be fetched.
public int getSymbolCount()
public MapSymbolComponent getSymbol(int position)
position - an int specifying the position from which the MapSymbolComponent is to be fetched.
public java.lang.String getProperty(java.lang.String str)
"currentTopology", "containment", "topology" Other than these, user properties, if any, can be retrieved.
getProperty in class MapSymbolComponentstr - a String representing the key of the Map Symbol Property.
Valid values for this argument could be any of the following.
"label", "name", "mapName", "status", "iconName", "objName", "menuName", "objType", "groupName", "x", "y", "width", "height", "webNMS", "parentName", "anchored". Other than these, user property keys, if any, can also be given.
String representing the value associated with the key
specified .It returns null when there is no such property.public java.util.Properties getProperties()
"currentTopology", "containment", "topology" Other than these, user properties, if any, will also be part of it.
getProperties in interface PropComponentgetProperties in class MapSymbolComponentsetProperties(java.util.Properties)public void setProperties(java.util.Properties prop)
setProperties in interface PropComponentsetProperties in class MapSymbolComponentgetProperties(),
MapSymbolComponent.getProperties(),
getProperties()public java.util.Properties getCurrentTopologyProperties()
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||