Package quadbase.util

Interface IHorzVertLine

All Superinterfaces:
Cloneable, IDataLine, IReferenceObj
All Known Subinterfaces:
IControlLine

public interface IHorzVertLine extends IDataLine
This class is used to draw horizontal/vertical lines in a chart. You may call newHorzVertLine(...) of IDataLineSet interface to get a new object. For instance,
QbChart chart = new QbChart(...);
IHorzVertLine line = chart.gethDataLineSet().newHorzVertLine(...);
See Also:
  • Field Details

  • Method Details

    • setLineType

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

      int getLineType()
      Get the line type
      Specified by:
      getLineType in interface IDataLine
      Returns:
      line type
    • setLineValue

      void setLineValue(double line_value)
      Set the value for the horizontal line or vertical line. For horizontal line if the Y-axis is of numeric value then the line is drawn using line_value, otherwise (i.e. Y-axis contains category name as in bar chart) the value is interpreted as :
      1 - draw a line between 1st and 2nd category,
      2 - draw a line between 2nd and 3rd category,
      etc...
      Similarly, line_value = 1.5 will draw a line on the 2nd category.

      For vertical line if the X-axis is of numeric value then the line is drawn using line_value, otherwise the value is interpreted as above.

      Specified by:
      setLineValue in interface IDataLine
    • getLineValue

      double getLineValue()
      Get the line value used by horizontal/vertical line type
      Specified by:
      getLineValue in interface IDataLine
      Returns:
      line value
    • setLineFromValue

      void setLineFromValue(double line_from)
      Set the start point X/Y value for Horizontal/Vertical line. The method is for 2D chart. The default value is X/Y origin value.
      Parameters:
      line_from - the start value of X/Y value for Horizontal/Vertical line.
    • getLineFromValue

      double getLineFromValue()
      Get the start point X/Y value used by horizontal/vertical line type
      Returns:
      start point X/Y value
    • setLineToValue

      void setLineToValue(double line_to)
      Set the end point X/Y value for Horizontal/Vertical line. The method is for 2D chart. The default value is X/Y origin value + X/Y length.
      Parameters:
      line_to - the end value of X/Y value for Horizontal/Vertical line.
    • getLineToValue

      double getLineToValue()
      Get the start point X/Y value used by horizontal/vertical line type
      Returns:
      start point X/Y value
    • setColorAboveLine

      void setColorAboveLine(Color color)
      Set the color of all chart data line segments that are above this line value (threshold value) to the desired color. Note that setColorAboveLine has a higher precedence than setColorBelowLine. The method has no effect if data connection lines are not shown. If the chart is not a line chart, the program should call gethDataPoints().setConnectLinesVisible(true) before setting the color. The default value is null. For 2D charts only.
      Parameters:
      color - the desired color
    • getColorAboveLine

      Color getColorAboveLine()
      Return the value of setColorAboveLine(Color). The default value is null. For 2D charts only.
      Returns:
      The color
    • setColorBelowLine

      void setColorBelowLine(Color color)
      Set the color of all chart data line segments which are below this line value (threshold value) to the desired color. Note that setColorAboveLine has a higher precedence than setColorBelowLine. The method has no effect if data connection lines are not shown. If the chart is not a line chart, the program should call gethDataPoints().setConnectLinesVisible(true) before setting the color. The default value is null. For 2D charts only.
      Parameters:
      color - the desired color
    • getColorBelowLine

      Color getColorBelowLine()
      Return the value of setColorBelowLine(Color). The default value is null. For 2D charts only.
      Returns:
      The color