Package quadbase.util

Interface IControlLine

All Superinterfaces:
Cloneable, IDataLine, IHorzVertLine, IReferenceObj

public interface IControlLine extends IHorzVertLine
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 Details

  • Method Details

    • setLineType

      void setLineType(int lineType)
      Sets the line type. The default type is CONTROL_AVERAGE.
      Specified by:
      setLineType in interface IDataLine
      Specified by:
      setLineType in interface IHorzVertLine
      Parameters:
      lineType - the type of this data line.
    • getLineType

      int getLineType()
      Get the line type
      Specified by:
      getLineType in interface IDataLine
      Specified by:
      getLineType in interface IHorzVertLine
      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:
      setLineValue in interface IDataLine
      Specified by:
      setLineValue in interface IHorzVertLine
    • getLineValue

      double getLineValue()
      Get the value of the multiplier
      Specified by:
      getLineValue in interface IDataLine
      Specified by:
      getLineValue in interface IHorzVertLine
      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