Class PlotLine

java.lang.Object
cnuphys.splot.plot.PlotLine
Direct Known Subclasses:
HorizontalLine, VerticalLine

public abstract class PlotLine extends Object
Just a straight line to be drawn on the plot, e.g. a y = 0 line
Author:
heddle
  • Field Details

  • Constructor Details

  • Method Details

    • setStyle

      public void setStyle(Styled style)
      Set the line drawing style
      Parameters:
      style - the new style
    • getStyle

      public Styled getStyle()
      Get the line style
      Returns:
      the line style
    • draw

      public void draw(Graphics g)
      Draw the line
      Parameters:
      g - the graphis context
    • getX0

      public abstract double getX0()
    • getX1

      public abstract double getX1()
    • getY0

      public abstract double getY0()
    • getY1

      public abstract double getY1()