Package org.netxms.client.maps.elements
Class NetworkMapDCIContainer
java.lang.Object
org.netxms.client.maps.elements.NetworkMapElement
org.netxms.client.maps.elements.NetworkMapDCIContainer
Network map element representing NetXMS DCI container.
- 
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 SummaryConstructorsModifierConstructorDescriptionNetworkMapDCIContainer(long id) Create new DCI container element.protectedNetworkMapDCIContainer(NXCPMessage msg, long baseId) Create DCI container from NXCP message.
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg, long baseId) Fill NXCP message with element dataintGet background color.intGet border color.Get configured DCIs as list.Get DCI list for this container.intGet text color.booleanCheck if container has any data to display.booleanCheck if "show border" flag is set for this element.voidsetBackgroundColor(int backgroundColor) Set background color (in BGR format).voidsetBorderColor(int borderColor) Set border color (in BGR format).voidsetBorderRequired(boolean borderRequired) Set "show border" flag.voidsetObjectDCIArray(MapDataSource[] dciArray) Set DCI list for this container.voidsetTextColor(int textColor) Set text color (in BGR format).Methods inherited from class org.netxms.client.maps.elements.NetworkMapElementaddFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
- 
Constructor Details- 
NetworkMapDCIContainerCreate DCI container from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base field ID
 
- 
NetworkMapDCIContainerpublic NetworkMapDCIContainer(long id) Create new DCI container element.- Parameters:
- id- element ID
 
 
- 
- 
Method Details- 
fillMessageDescription copied from class:NetworkMapElementFill NXCP message with element data- Overrides:
- fillMessagein class- NetworkMapElement
- Parameters:
- msg- NXCP message
- baseId- base variable ID
- See Also:
 
- 
hasDciDatapublic boolean hasDciData()Check if container has any data to display.- Returns:
- returns if DCI list is not empty
 
- 
getObjectDCIArrayGet DCI list for this container. Returned array is owned by container and changes to it will be reflected in container.- Returns:
- DCI list for this container
 
- 
setObjectDCIArraySet DCI list for this container. Container will become owner of the list.- Parameters:
- dciArray- DCI list for this container
 
- 
getDciAsListGet configured DCIs as list. Changes to returned list object will not affect container configuration.- Returns:
- configured DCIs as list
 
- 
getBackgroundColorpublic int getBackgroundColor()Get background color.- Returns:
- background color in BGR format
 
- 
setBackgroundColorpublic void setBackgroundColor(int backgroundColor) Set background color (in BGR format).- Parameters:
- backgroundColor- new background color in BGR format
 
- 
getTextColorpublic int getTextColor()Get text color.- Returns:
- text color in BGR format
 
- 
setTextColorpublic void setTextColor(int textColor) Set text color (in BGR format).- Parameters:
- textColor- new text color in BGR format
 
- 
getBorderColorpublic int getBorderColor()Get border color.- Returns:
- border color in BGR format
 
- 
setBorderColorpublic void setBorderColor(int borderColor) Set border color (in BGR format).- Parameters:
- borderColor- new border color in BGR format
 
- 
isBorderRequiredpublic boolean isBorderRequired()Check if "show border" flag is set for this element.- Returns:
- true if "show border" flag is set
 
- 
setBorderRequiredpublic void setBorderRequired(boolean borderRequired) Set "show border" flag.- Parameters:
- borderRequired- true if border should be shown
 
 
-