Package org.netxms.client.maps.elements
Class NetworkMapDCIContainer
- java.lang.Object
-
- org.netxms.client.maps.elements.NetworkMapElement
-
- org.netxms.client.maps.elements.NetworkMapDCIContainer
-
public class NetworkMapDCIContainer extends NetworkMapElement
Network map element representing NetXMS DCI container
-
-
Field Summary
-
Fields inherited from class org.netxms.client.maps.elements.NetworkMapElement
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
Constructors Modifier Constructor Description NetworkMapDCIContainer(long id)Create new DCI container elementprotectedNetworkMapDCIContainer(org.netxms.base.NXCPMessage msg, long baseId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP message with element dataintgetBackgroundColor()intgetBorderColor()List<SingleDciConfig>getDciAsList()Returns DCI array as a listSingleDciConfig[]getObjectDCIArray()intgetTextColor()booleanhasDciData()booleanisBorderRequired()voidsetBackgroundColor(int backgroundColor)voidsetBorderColor(int borderColor)voidsetBorderRequired(boolean borderRequired)voidsetObjectDCIArray(SingleDciConfig[] dciArray)Setter for dciListvoidsetTextColor(int textColor)-
Methods inherited from class org.netxms.client.maps.elements.NetworkMapElement
addFlag, createMapElement, equals, getFlags, getId, getType, getX, getY, hashCode, removeFlag, setFlags, setLocation
-
-
-
-
Method Detail
-
hasDciData
public boolean hasDciData()
- Returns:
- returns if DCI list is not empty
-
getObjectDCIArray
public SingleDciConfig[] getObjectDCIArray()
- Returns:
- the objectDCIList
-
setObjectDCIArray
public void setObjectDCIArray(SingleDciConfig[] dciArray)
Setter for dciList- Parameters:
dciArray-
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg, long baseId)Description copied from class:NetworkMapElementFill NXCP message with element data- Overrides:
fillMessagein classNetworkMapElement- Parameters:
msg- NXCP messagebaseId- base variable ID
-
getDciAsList
public List<SingleDciConfig> getDciAsList()
Returns DCI array as a list
-
getBackgroundColor
public int getBackgroundColor()
- Returns:
- the backgroundColor
-
setBackgroundColor
public void setBackgroundColor(int backgroundColor)
- Parameters:
backgroundColor- the backgroundColor to set
-
getTextColor
public int getTextColor()
- Returns:
- the textColor
-
setTextColor
public void setTextColor(int textColor)
- Parameters:
textColor- the textColor to set
-
getBorderColor
public int getBorderColor()
- Returns:
- the borderColor
-
setBorderColor
public void setBorderColor(int borderColor)
- Parameters:
borderColor- the borderColor to set
-
isBorderRequired
public boolean isBorderRequired()
- Returns:
- the borderRequired
-
setBorderRequired
public void setBorderRequired(boolean borderRequired)
- Parameters:
borderRequired- the borderRequired to set
-
-