Class CurveDrawer

java.lang.Object
edu.cnu.mdi.splot.plot.CurveDrawer

public class CurveDrawer extends Object
  • Field Details

    • lock

      protected final Object lock
  • Constructor Details

    • CurveDrawer

      public CurveDrawer()
  • Method Details

    • drawCurve

      public static void drawCurve(Graphics2D g2, PlotCanvas plotCanvas, ACurve curve)
      Draw the given curve on the given plot canvas
      Parameters:
      g2 - the graphics context
      plotCanvas - the plot canvas
      curve - the curve to be drawn
    • drawBar

      public static void drawBar(Graphics2D g2, PlotCanvas canvas, Curve curve)
      Draw a bar for the given curve. The curve must have exactly 4 points, which are the corners of the bar.
      Parameters:
      g2 - the graphics context
      canvas - the plot canvas
      curve - the curve to be drawn as a bar
    • drawXYCurve

      public static void drawXYCurve(Graphics2D g2, PlotCanvas canvas, Curve curve)
      Draw a standard XY(with optional errors) curve
      Parameters:
      g2 - the graphics context
      canvas - the plot canvas
      curve - the XY(E)curve to be drawn
    • drawStripChart

      public static void drawStripChart(Graphics2D g2, PlotCanvas canvas, StripChartCurve stripChartCurve)
      Draw a strip chart
      Parameters:
      g2 - the graphics context
      canvas - the plot canvas
      stripChartCurve - the strip chart curve