skip to main content
Programmer's documentation > Developing with the JViews Charts SDK > Displaying Data Indicator > General Properties
 
General Properties
The following table shows the properties of the IlvDataIndicator class.
 
Property
Methods
Default value
Indicator type
getType
 
Data value for which the data indicator is drawn. This property is used when the indicator type is either X_VALUE or Y_VALUE.
setValue
getValue
 
Data range for which the data indicator is drawn. This property is used when the indicator type is either X_RANGE or Y_RANGE.
setRange
getRange
 
Data window for which the data indicator is drawn. This property is used when the indicator type is WINDOW.
setDataWindow
getDataWindow
 
Text displayed over the delimiter.
setText
getText
null
Style used to draw the data indicator.
setStyle
getStyle
chart area plot style
Drawing order relative to the drawing of the graphical representation of data and to the other decorations.
setDrawOrder
getDrawOrder
IlvChart.DRAW_BELOW
Visible
setVisible
isVisible
true
Indicator type
The indicator type property is initialized at construction time depending on the constructor that is used. Setting the type does not reset the value: the last value used for the new type, if any, is used.
Data represented by the indicator
The data represented by the indicator can be changed dynamically using the corresponding setValue/ setRange/ setDataWindow methods. If the data type to represent is different from the current one when invoking one of these methods, the indicator type is automatically updated according to the type of the data value. Furthermore, when you invoke one of these methods, you automatically update the chart drawing area.
Optional label
An optional label can be associated with a data indicator and drawn over the delimiter. The text to display can be set either at construction time or dynamically using the setText method.
By default, the location of the label is centered vertically or/and horizontally with respect to the data value/range/window. You can change this behavior by overriding the computeLabelLocation method.
Drawing order
As for all the decorations, you can control the drawing order of the indicator with respect to the charts representation and to the other decorations. This drawing order is described by the drawOrder property. See Decorations for more information on ordering decorations.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.