Package org.netxms.client.maps.elements
Class NetworkMapObject
java.lang.Object
org.netxms.client.maps.elements.NetworkMapElement
org.netxms.client.maps.elements.NetworkMapObject
Network map element representing NetXMS object
-
Field Summary
Fields inherited from class org.netxms.client.maps.elements.NetworkMapElement
AUTO_GENERATED, id, MAP_ELEMENT_DCI_CONTAINER, MAP_ELEMENT_DCI_IMAGE, MAP_ELEMENT_DECORATION, MAP_ELEMENT_GENERIC, MAP_ELEMENT_OBJECT, MAP_ELEMENT_TEXT_BOX, type, x, y
-
Constructor Summary
ModifierConstructorDescriptionNetworkMapObject
(long id, long objectId) Create new object elementprotected
NetworkMapObject
(NXCPMessage msg, long baseId) Create from NXCP message. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg, long baseId) Fill NXCP message with element dataint
Get heightlong
Get object ID.int
getWidth()
Get widthvoid
setSize
(int width, int height) Set object size (For floor plan view)toString()
Methods inherited from class org.netxms.client.maps.elements.NetworkMapElement
addFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
-
Constructor Details
-
NetworkMapObject
Create from NXCP message.- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
NetworkMapObject
public NetworkMapObject(long id, long objectId) Create new object element- Parameters:
id
- element IDobjectId
- NetXMS object ID
-
-
Method Details
-
getObjectId
public long getObjectId()Get object ID.- Returns:
- object ID
-
fillMessage
Description copied from class:NetworkMapElement
Fill NXCP message with element data- Overrides:
fillMessage
in classNetworkMapElement
- Parameters:
msg
- NXCP messagebaseId
- base variable ID- See Also:
-
toString
-
setSize
public void setSize(int width, int height) Set object size (For floor plan view)- Parameters:
width
- to setheight
- to set
-
getWidth
public int getWidth()Get width- Returns:
- width
-
getHeight
public int getHeight()Get height- Returns:
- height
-