Class VerticalLine

java.lang.Object
edu.cnu.mdi.splot.plot.PlotLine
edu.cnu.mdi.splot.plot.VerticalLine

public class VerticalLine extends PlotLine
Plot annotation spanning the visible y range at a fixed data-space x value.
  • Constructor Details

    • VerticalLine

      public VerticalLine(PlotCanvas canvas, double x)
      Create a vertical annotation.
      Parameters:
      canvas - owning canvas
      x - fixed data-space x value
  • Method Details

    • getX0

      public double getX0()
      Description copied from class: PlotLine
      Get the starting x coordinate
      Specified by:
      getX0 in class PlotLine
      Returns:
      the starting x coordinate
    • getX1

      public double getX1()
      Description copied from class: PlotLine
      Get the ending x coordinate
      Specified by:
      getX1 in class PlotLine
      Returns:
      the ending x coordinate
    • getY0

      public double getY0()
      Description copied from class: PlotLine
      Get the starting y coordinate
      Specified by:
      getY0 in class PlotLine
      Returns:
      the starting y coordinate
    • getY1

      public double getY1()
      Description copied from class: PlotLine
      Get the ending y coordinate
      Specified by:
      getY1 in class PlotLine
      Returns:
      the ending y coordinate