Package org.netxms.client.maps.elements
Class NetworkMapDecoration
java.lang.Object
org.netxms.client.maps.elements.NetworkMapElement
org.netxms.client.maps.elements.NetworkMapDecoration
Decoration element of network map
- 
Field SummaryFieldsFields 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 SummaryConstructorsModifierConstructorDescriptionNetworkMapDecoration(long id, int decorationType) Create new decoration object.protectedNetworkMapDecoration(NXCPMessage msg, long baseId) Create from NXCP message.
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg, long baseId) Fill NXCP message with element dataintgetColor()intGet decoration type.intgetTitle()intgetWidth()voidsetColor(int color) voidsetSize(int w, int h) Set decoration sizevoidMethods inherited from class org.netxms.client.maps.elements.NetworkMapElementaddFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
- 
Field Details- 
GROUP_BOXpublic static final int GROUP_BOX- See Also:
 
- 
IMAGEpublic static final int IMAGE- See Also:
 
 
- 
- 
Constructor Details- 
NetworkMapDecorationCreate from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base field ID
 
- 
NetworkMapDecorationpublic NetworkMapDecoration(long id, int decorationType) Create new decoration object.- Parameters:
- id- map element ID
- decorationType- decoration type - one of
 - GROUP_BOX(show box with title that can be used for grouping map elements)
- IMAGE(arbitrary image)
 
 
 
- 
- 
Method Details- 
getDecorationTypepublic int getDecorationType()Get decoration type.- Returns:
- decoration type
 
- 
getColorpublic int getColor()- Returns:
- the color
 
- 
getTitle- Returns:
- the title
 
- 
setColorpublic void setColor(int color) - Parameters:
- color- the color to set
 
- 
setTitle- Parameters:
- title- the title to set
 
- 
fillMessageDescription copied from class:NetworkMapElementFill NXCP message with element data- Overrides:
- fillMessagein class- NetworkMapElement
- Parameters:
- msg- NXCP message
- baseId- base variable ID
 
- 
getWidthpublic int getWidth()- Returns:
- the width
 
- 
getHeightpublic int getHeight()- Returns:
- the height
 
- 
setSizepublic void setSize(int w, int h) Set decoration size- Parameters:
- w- width
- h- height
 
 
-