Package edu.cnu.mdi.splot.plot
Class CurveDrawer
java.lang.Object
edu.cnu.mdi.splot.plot.CurveDrawer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawBar(Graphics2D g2, PlotCanvas canvas, Curve curve) Draw a bar for the given curve.static voiddrawCurve(Graphics2D g2, PlotCanvas plotCanvas, ACurve curve) Draw the given curve on the given plot canvasstatic voiddrawStripChart(Graphics2D g2, PlotCanvas canvas, StripChartCurve stripChartCurve) Draw a strip chartstatic voiddrawXYCurve(Graphics2D g2, PlotCanvas canvas, Curve curve) Draw a standard XY(with optional errors) curve
-
Field Details
-
lock
-
-
Constructor Details
-
CurveDrawer
public CurveDrawer()
-
-
Method Details
-
drawCurve
Draw the given curve on the given plot canvas- Parameters:
g2- the graphics contextplotCanvas- the plot canvascurve- the curve to be drawn
-
drawBar
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 contextcanvas- the plot canvascurve- the curve to be drawn as a bar
-
drawXYCurve
Draw a standard XY(with optional errors) curve- Parameters:
g2- the graphics contextcanvas- the plot canvascurve- 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 contextcanvas- the plot canvasstripChartCurve- the strip chart curve
-