public abstract class Drawer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_GRID_SPACING
Vertical padding for y-axis labels
|
static int |
MIN_GRID_SPACING
Vertical padding for y-axis labels
|
Constructor and Description |
---|
Drawer() |
Modifier and Type | Method and Description |
---|---|
static void |
draw3DCurve(Plot3DState state,
Curve c,
ODEVar x,
ODEVar y,
ODEVar z)
Draws a curve on a 3D Plot Panel in the specified color.
|
static void |
draw3DEquilibrium(Plot3DState state,
Equilibrium e,
ODEVar x,
ODEVar y,
ODEVar z)
Draws a Equilibrium on a 3D Plot Panel in the specified color.
|
static void |
drawCurve(Curve c,
ODEVar x,
ODEVar y,
java.awt.Graphics offscreenPlot,
PlotState state,
java.awt.Rectangle viewingWindow)
Draws a set of solution curves on the given virtual image.
|
static void |
drawDirField(java.awt.Graphics graphics,
SinglePlotState state,
java.awt.Rectangle viewingWindow)
Draw a direction field on the current plot object for the given ODE.
|
static void |
drawEquilibrium(Equilibrium e,
ODEVar x,
ODEVar y,
java.awt.Graphics offscreenPlot,
PlotState state,
java.awt.Rectangle viewingWindow)
Draws Equilibrium on the given virtual image.
|
static java.awt.Rectangle |
drawPlotBackground(java.awt.Graphics graphics,
PlotState state)
This is the publicly accessible function for drawing the plot box, its
border, the title and axis labels, and the tick marks and tick
labels--i.e.
|
public static final int MIN_GRID_SPACING
public static final int MAX_GRID_SPACING
public static java.awt.Rectangle drawPlotBackground(java.awt.Graphics graphics, PlotState state)
graphics
- The graphics context on which to drawstate
- The plot state to drawpublic static void drawCurve(Curve c, ODEVar x, ODEVar y, java.awt.Graphics offscreenPlot, PlotState state, java.awt.Rectangle viewingWindow)
c
- The curve to be drawnx
- Which curve variable is the independent oney
- Which curve variable is the dependent oneoffscreenPlot
- The offscreen image bufferstate
- The plot state which will display the curveviewingWindow
- The area available for displaypublic static void drawEquilibrium(Equilibrium e, ODEVar x, ODEVar y, java.awt.Graphics offscreenPlot, PlotState state, java.awt.Rectangle viewingWindow)
e
- The Equilibrium to be drawnx
- Which Equilibrium variable is the independent oney
- Which Equilibrium variable is the dependent oneoffscreenPlot
- The offscreen image bufferstate
- The plot state which will display the curveviewingWindow
- The area available for displaypublic static void draw3DCurve(Plot3DState state, Curve c, ODEVar x, ODEVar y, ODEVar z)
state
- Plot3DState representing the Plot Panel to draw onc
- Curve to be drawnx
- The variable corresponding to the x-axisy
- The variable corresponding to the y-axisz
- The variable corresponding to the z-axispublic static void draw3DEquilibrium(Plot3DState state, Equilibrium e, ODEVar x, ODEVar y, ODEVar z)
state
- Plot3DState representing the Plot Panel to draw one
- Equilibrium to be drawnx
- The variable corresponding to the x-axisy
- The variable corresponding to the y-axisz
- The variable corresponding to the z-axispublic static void drawDirField(java.awt.Graphics graphics, SinglePlotState state, java.awt.Rectangle viewingWindow)
graphics
- graphics object to display direction field on.state
- the plot to draw the direction field for.viewingWindow
- The area available for display