Package org.netxms.client.datacollection
Class ChartDciConfig
java.lang.Object
org.netxms.client.datacollection.ChartDciConfig
- All Implemented Interfaces:
NodeItemPair
DCI information for chart
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intlongstatic final intprotected intbooleanstatic final intstatic final intintintbooleanlongbooleanbooleanstatic final intintstatic final Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorChartDciConfig(String label) Create ad-hoc config with given labelCopy constructorChartDciConfig(ChartDciConfig src, Matcher matcher, DciValue dciValue) Create DCI info from DciValue objectChartDciConfig(ChartDciConfig src, DciValue dciValue) Create DCI info from DciValue objectCreate DCI info from DataCollectionObject objectChartDciConfig(DciValue dci) Create DCI info from DciValue object -
Method Summary
Modifier and TypeMethodDescriptionintlonggetDciId()Get DCI idGet display formatgetLabel()Get DCI label.intGet line chart typelongGet node IDbooleanisArea(boolean defaultIsArea) Check if display type set to "area".voidsetColor(int value) voidsetDciDescription(String dciDescription) voidsetDciName(String dciName) voidtoString()
-
Field Details
-
UNSET_COLOR
- See Also:
-
ITEM
public static final int ITEM- See Also:
-
TABLE
public static final int TABLE- See Also:
-
DEFAULT
public static final int DEFAULT- See Also:
-
LINE
public static final int LINE- See Also:
-
AREA
public static final int AREA- See Also:
-
nodeId
public long nodeId -
dciId
public long dciId -
dciName
-
dciDescription
-
dciTag
-
type
public int type -
color
-
name
-
lineWidth
public int lineWidth -
lineChartType
public int lineChartType -
displayType
protected int displayType -
showThresholds
public boolean showThresholds -
invertValues
public boolean invertValues -
useRawValues
public boolean useRawValues -
multiMatch
public boolean multiMatch -
regexMatch
public boolean regexMatch -
instance
-
column
-
displayFormat
-
-
Constructor Details
-
ChartDciConfig
public ChartDciConfig()Default constructor -
ChartDciConfig
Create ad-hoc config with given label- Parameters:
label- label to use
-
ChartDciConfig
Copy constructor- Parameters:
src- source object
-
ChartDciConfig
Create DCI info from DciValue object- Parameters:
dci- The DciValue
-
ChartDciConfig
Create DCI info from DciValue object- Parameters:
src- initial configuration to copy formdciValue- runtime DCI information
-
ChartDciConfig
Create DCI info from DciValue object- Parameters:
src- initial configuration to copy formmatcher- matcher to get match group for nodedciValue- runtime DCI information
-
ChartDciConfig
Create DCI info from DataCollectionObject object- Parameters:
dci- DCI to use as source
-
-
Method Details
-
getColorAsInt
public int getColorAsInt()- Returns:
- the color
-
setColor
public void setColor(int value) - Parameters:
value- The colour value
-
getLabel
Get DCI label. Always returns non-empty string.- Returns:
- DCI label
-
getDisplayFormat
Get display format- Returns:
- The display format
-
getLineChartType
public int getLineChartType()Get line chart type- Returns:
- The display type
-
isArea
public boolean isArea(boolean defaultIsArea) Check if display type set to "area".- Parameters:
defaultIsArea- true if chart's default line chart type is AREA- Returns:
- true if display type set to "area".
-
getDciName
- Returns:
- the dciName
-
setDciName
- Parameters:
dciName- the dciName to set
-
getDciDescription
- Returns:
- the dciDescription
-
setDciDescription
- Parameters:
dciDescription- the dciDescription to set
-
getDciTag
- Returns:
- the dciTag
-
setDciTag
- Parameters:
dciTag- the dciTag to set
-
toString
-
getNodeId
public long getNodeId()Description copied from interface:NodeItemPairGet node ID- Specified by:
getNodeIdin interfaceNodeItemPair- Returns:
- node id
- See Also:
-
getDciId
public long getDciId()Description copied from interface:NodeItemPairGet DCI id- Specified by:
getDciIdin interfaceNodeItemPair- Returns:
- dci id
- See Also:
-