public class IlvThresholdIndicator extends IlvDataIndicator
IlvDataIndicator
subclass that defines threshold lines and ranges.
An IlvThresholdIndicator
instance defines maximum and
minimum values on given data sets as well as provides a graphical representation of these
limit values.
These limit values are actually data set properties and thus
can be used through the styling API to define a dynamic styling on a series
depending on the threshold values (see below for an example).
Depending on the type of the threshold indicator, the properties for the limit values are:
In addition to these features, an IlvThresholdIndicator
supports direct user interactions in order to modify the limit values:
Here is an example of a series styling. The following rules change the color of the series named "dataSet1" depending on whether the datapoint value lies inside the threshold range indicator.
chart { decorations: @|decorations(@#xIndic); } Subobject#xIndic { class:'ilog.views.chart.graphic.IlvThresholdIndicator(axisIndex, range, text, properties)'; axisIndex: -1; range:\"[5;7]\"; text:''; properties:"xThresholdMin,xThresholdMax"; series:'dataSet1'; } point[\"@|@x-@xThresholdMin\">0][\"@|@x-@xThresholdMax\"<0] { color1: #ff0000; }CSS example:
ilvThresholdIndicator {
class : "ilog.views.chart.graphic.IlvThresholdIndicator(yAxisIdx,dataWindow,text,properties)";
annotationVisible : "false";
axisIndex : "2";
drawOrder : "2";
interactive : "false";
labelRenderer : "@#ilvLabelRenderer";
properties[0] : "<value>";
properties[1] : "<value>";
range : "@#ilvDataInterval";
style : "@#ilvStyle";
text : "<value>";
value : "3.0";
visible : "false";
}
Modifier and Type | Property and Description |
---|---|
boolean |
annotationVisible
Sets whether the scale annotations are visible. |
int |
axisIndex
Sets the index of the axis to which this indicator is attached. |
java.lang.String |
class
Creates a threshold for the specified data window with the specified text. |
int |
drawOrder
Sets the drawing order of this decoration. |
boolean |
interactive
Sets whether user interactions are enabled for this threshold. |
IlvLabelRenderer |
labelRenderer
Sets the renderer of the text displayed by this indicator. |
java.lang.String[] |
properties
Sets the name of the properties of this threshold indicator. |
IlvDataInterval |
range
Sets the range displayed by this indicator. |
IlvStyle |
style
Specifies the rendering style of this indicator. |
java.lang.String |
text
Sets the text associated with this indicator. |
double |
value
Sets the value displayed by the indicator. |
boolean |
visible
Toggles the visibility of this decoration. |
dataWindow
public java.lang.String class
WINDOW
.
class : "ilog.views.chart.graphic.IlvThresholdIndicator(yAxisIdx,dataWindow,text,properties)";
public boolean annotationVisible
true
.
annotationVisible : "false";
public int axisIndex
axisIndex : "2";
public int drawOrder
drawOrder : "2";
public boolean interactive
false
.
interactive : "false";
public IlvLabelRenderer labelRenderer
labelRenderer : "@#ilvLabelRenderer";
IlvLabelRenderer
for an example of implementing a labelRenderer.public java.lang.String[] properties
properties[0] : "<value>";
properties[1] : "<value>";
public IlvDataInterval range
X_RANGE
or Y_RANGE
.
range : "@#ilvDataInterval";
IlvDataInterval
for an example of implementing a range.public IlvStyle style
style : "@#ilvStyle";
IlvStyle
for an example of implementing a style.public java.lang.String text
X_VALUE
or Y_VALUE
types, or
with the stroke color of the drawing style in the other cases.
text : "<value>";
public double value
X_VALUE
or Y_VALUE
.
value : "3.0";
public boolean visible
visible : "false";
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.