Package quadbase.util
Interface IControlLine
- All Superinterfaces:
Cloneable,IDataLine,IHorzVertLine,IReferenceObj
This class is used to draw control lines in a chart You may call newControlLine(...) of
IDataLineSet interface to get a new object
For instance, QbChart chart = new QbChart(...); IControlLine line =
chart.gethDataLineSet().newControlLine(...);
You may use setSeries(String series) method of IDataLine interface to set the corresponding
series of the control line
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA line type constantstatic final intA line type constantstatic final intA line type constantstatic final intA line type constantFields inherited from interface quadbase.util.IDataLine
CLOSE, DASH_STYLE, DOTTED_STYLE, HIGH, LOW, OPEN, SOLID_STYLEFields inherited from interface quadbase.util.IHorzVertLine
CIRCULAR_STYLE, HORIZONTAL_LINE, SEGMENTED_STYLE, VERTICAL_LINE -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the average of the selected data setdoubleGet the calculated value used for plotting the lineintGet the line typedoubleGet the value of the multiplierdoublegetMax()Get the maximum value of the selected data setdoublegetMin()Get the minimum value of the selected data setdoubleGet the standard deviation of the selected data setvoidsetLineType(int lineType) Sets the line type.voidsetLineValue(double line_value) This function is only valid for control line STANDARD_DEVIATION.Methods inherited from interface quadbase.util.IDataLine
getCoeff, getColor, getLineStyle, getSeries, getShowHintValue, getThickness, getTitle, getValueColumn, getValueHint, isSecondaryValueUsed, isTitleVisibleInLegend, setCoeff, setColor, setLineStyle, setSeries, setShowHintValue, setThickness, setTitle, setTitleVisibleInLegend, setValueColumn, setValueHint, useSecondaryValueMethods inherited from interface quadbase.util.IHorzVertLine
getColorAboveLine, getColorBelowLine, getLineFromValue, getLineToValue, setColorAboveLine, setColorBelowLine, setLineFromValue, setLineToValueMethods inherited from interface quadbase.util.IReferenceObj
addAnnotation, getAnnotations, getReferencePosition, isVisible, removeAnnotation
-
Field Details
-
CONTROL_AVERAGE
static final int CONTROL_AVERAGEA line type constant- See Also:
-
STANDARD_DEVIATION
static final int STANDARD_DEVIATIONA line type constant- See Also:
-
MINIMUM
static final int MINIMUMA line type constant- See Also:
-
MAXIMUM
static final int MAXIMUMA line type constant- See Also:
-
-
Method Details
-
setLineType
void setLineType(int lineType) Sets the line type. The default type is CONTROL_AVERAGE.- Specified by:
setLineTypein interfaceIDataLine- Specified by:
setLineTypein interfaceIHorzVertLine- Parameters:
lineType- the type of this data line.
-
getLineType
int getLineType()Get the line type- Specified by:
getLineTypein interfaceIDataLine- Specified by:
getLineTypein interfaceIHorzVertLine- Returns:
- line type
-
setLineValue
void setLineValue(double line_value) This function is only valid for control line STANDARD_DEVIATION. It sets the value of the multiplier m for the formula: calculatedValue = average + m * standardDeviation The orientation of the straight depends on the type of the chart For example, a horizontal line is drawn at that calculated position if the chart type is QbChart.COL. A vertical line is drawn if the chart type is QbChart.BAR.- Specified by:
setLineValuein interfaceIDataLine- Specified by:
setLineValuein interfaceIHorzVertLine
-
getLineValue
double getLineValue()Get the value of the multiplier- Specified by:
getLineValuein interfaceIDataLine- Specified by:
getLineValuein interfaceIHorzVertLine- Returns:
- line value
-
getAverage
double getAverage()Get the average of the selected data set -
getStandardDev
double getStandardDev()Get the standard deviation of the selected data set -
getMin
double getMin()Get the minimum value of the selected data set -
getMax
double getMax()Get the maximum value of the selected data set -
getCalculatedValue
double getCalculatedValue()Get the calculated value used for plotting the line
-