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 Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • setStyle Link icon

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

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

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

      public abstract double getX0()
    • getX1 Link icon

      public abstract double getX1()
    • getY0 Link icon

      public abstract double getY0()
    • getY1 Link icon

      public abstract double getY1()