Package org.netxms.client.maps.elements
Class NetworkMapElement
java.lang.Object
org.netxms.client.maps.elements.NetworkMapElement
- Direct Known Subclasses:
- NetworkMapDCIContainer,- NetworkMapDCIImage,- NetworkMapDecoration,- NetworkMapObject,- NetworkMapTextBox
Network map element.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intprotected longstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected intprotected intprotected int
- 
Constructor SummaryConstructorsModifierConstructorDescriptionNetworkMapElement(long id) Create new generic element.protectedNetworkMapElement(NXCPMessage msg, long baseId) Create element from NXCP message.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddFlag(int flags) static NetworkMapElementcreateMapElement(NXCPMessage msg, long baseId) Factory method for creating map element from NXCP message.booleanvoidfillMessage(NXCPMessage msg, long baseId) Fill NXCP message with element dataintgetFlags()Get element flags.longgetId()Get element ID.intgetType()Get element type.intgetX()Get X (horizontal) coordinate.intgetY()Get Y (vertical) coordinate.inthashCode()voidremoveFlag(int flags) voidsetFlags(int flags) Set element flags.voidsetLocation(int x, int y) Set elements's location
- 
Field Details- 
AUTO_GENERATEDpublic static final int AUTO_GENERATED- See Also:
 
- 
MAP_ELEMENT_GENERICpublic static final int MAP_ELEMENT_GENERIC- See Also:
 
- 
MAP_ELEMENT_OBJECTpublic static final int MAP_ELEMENT_OBJECT- See Also:
 
- 
MAP_ELEMENT_DECORATIONpublic static final int MAP_ELEMENT_DECORATION- See Also:
 
- 
MAP_ELEMENT_DCI_CONTAINERpublic static final int MAP_ELEMENT_DCI_CONTAINER- See Also:
 
- 
MAP_ELEMENT_DCI_IMAGEpublic static final int MAP_ELEMENT_DCI_IMAGE- See Also:
 
- 
MAP_ELEMENT_TEXT_BOXpublic static final int MAP_ELEMENT_TEXT_BOX- See Also:
 
- 
idprotected long id
- 
typeprotected int type
- 
xprotected int x
- 
yprotected int y
 
- 
- 
Constructor Details- 
NetworkMapElementCreate element from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base variable ID
 
- 
NetworkMapElementpublic NetworkMapElement(long id) Create new generic element.- Parameters:
- id- element ID
 
 
- 
- 
Method Details- 
createMapElementFactory method for creating map element from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base variable ID
- Returns:
- map element object
 
- 
fillMessageFill NXCP message with element data- Parameters:
- msg- NXCP message
- baseId- base variable ID
 
- 
getTypepublic int getType()Get element type.- Returns:
- element type
 
- 
getXpublic int getX()Get X (horizontal) coordinate.- Returns:
- X (horizontal) coordinate
 
- 
getYpublic int getY()Get Y (vertical) coordinate.- Returns:
- Y (vertical) coordinate
 
- 
getIdpublic long getId()Get element ID.- Returns:
- element ID
 
- 
setLocationpublic void setLocation(int x, int y) Set elements's location- Parameters:
- x- new X (horizontal) coordinate
- y- new Y (vertical) coordinate
 
- 
equals
- 
hashCodepublic int hashCode()
- 
getFlagspublic int getFlags()Get element flags.- Returns:
- element flags
 
- 
setFlagspublic void setFlags(int flags) Set element flags.- Parameters:
- flags- new element flags
 
- 
addFlagpublic void addFlag(int flags) - Parameters:
- flags- the flag to be added to current flags
 
- 
removeFlagpublic void removeFlag(int flags) - Parameters:
- flags- the flag
 
 
-