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 SummaryFields inherited from class org.netxms.client.maps.elements.NetworkMapElementAUTO_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 SummaryConstructorsModifierConstructorDescriptionNetworkMapObject(long id, long objectId) Create new object elementprotectedNetworkMapObject(NXCPMessage msg, long baseId) Create from NXCP message.
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg, long baseId) Fill NXCP message with element dataintGet heightlongGet object ID.intgetWidth()Get widthvoidsetSize(int width, int height) Set object size (For floor plan view)toString()Methods inherited from class org.netxms.client.maps.elements.NetworkMapElementaddFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
- 
Constructor Details- 
NetworkMapObjectCreate from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base field ID
 
- 
NetworkMapObjectpublic NetworkMapObject(long id, long objectId) Create new object element- Parameters:
- id- element ID
- objectId- NetXMS object ID
 
 
- 
- 
Method Details- 
getObjectIdpublic long getObjectId()Get object ID.- Returns:
- object ID
 
- 
fillMessageDescription copied from class:NetworkMapElementFill NXCP message with element data- Overrides:
- fillMessagein class- NetworkMapElement
- Parameters:
- msg- NXCP message
- baseId- base variable ID
- See Also:
 
- 
toString
- 
setSizepublic void setSize(int width, int height) Set object size (For floor plan view)- Parameters:
- width- to set
- height- to set
 
- 
getWidthpublic int getWidth()Get width- Returns:
- width
 
- 
getHeightpublic int getHeight()Get height- Returns:
- height
 
 
-