All Packages Class Hierarchy This Package Previous Next Index
Class sim.display.Contour
java.lang.Object
|
+----sim.display.Plot
|
+----sim.display.Contour
- public class Contour
- extends Plot
Draw a contour plot with any number of contours.
This code is (c) 1996,1997 Ansgar Laubsch and Leemon Baird
<leemon@cs.cmu.edu>,
http://www.cs.cmu.edu/~baird
The source and object code may be redistributed freely.
If the code is modified, please state so in the comments.
- Version:
- 2.0 15 May 97
- Author:
- Ansgar Laubsch, Leemon Baird
-
color
-
-
colorM
-
-
data
-
-
function
-
-
inputM
-
-
inputs
-
-
max
-
-
min
-
-
numContours
-
-
origFunction
-
-
outputM
-
-
spectrum
-
-
weightM
-
-
xElement
-
-
xSamples
-
-
yElement
-
-
ySamples
-
-
zElement
-
-
zeros
-
-
zMax
-
-
zMin
-
-
Contour()
-
-
destroy()
- ensure the function approximator has its destroy() called too
-
drawAll(Graphics, double, double, double, double, int, int, int, int, int, int)
- Draw the contour lines.
-
getParameters(int)
- Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
-
initialize(int)
- Initialize, either partially or completely.
-
update(String, Pointer, Watchable)
- One of the watched variables has changed, so look at it and others.
numContours
protected IntExp numContours
function
protected FunApp function
origFunction
protected FunApp origFunction[]
inputs
protected MatrixD inputs
xSamples
protected IntExp xSamples
xElement
protected IntExp xElement
ySamples
protected IntExp ySamples
yElement
protected IntExp yElement
zElement
protected IntExp zElement
zMin
protected NumExp zMin
zMax
protected NumExp zMax
data
protected double data[][]
min
protected double min
max
protected double max
inputM
protected MatrixD inputM
outputM
protected MatrixD outputM
weightM
protected MatrixD weightM
zeros
protected final double zeros[]
color
protected Color color
colorM
protected PMatrixD colorM
spectrum
protected PBoolean spectrum
Contour
public Contour()
getParameters
public Object[][] getParameters(int lang)
- Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
- Overrides:
- getParameters in class Plot
- See Also:
- getParameters
drawAll
public void drawAll(Graphics g,
double xMin,
double xMax,
double yMin,
double yMax,
int startX,
int startY,
int xAxisX,
int xAxisY,
int yAxisX,
int yAxisY)
- Draw the contour lines.
The region of mathematical space to draw is (xMin,yMin)-(xMax,yMax), where
(xMin,yMin) is plotted at screen coordinates (startX,startY), and
(xMax,yMin) is plotted at screen coordinates (xAxisX,xAxisY), and
(xMin,yMax) is plotted at screen coordinates (yAxisX,yAxisY).
- Overrides:
- drawAll in class Plot
destroy
public void destroy()
- ensure the function approximator has its destroy() called too
- Overrides:
- destroy in class Plot
update
public void update(String changedName,
Pointer changedVar,
Watchable obj)
- One of the watched variables has changed, so look at it and others.
It should call checkMoved() to
make sure the window is a legal size.
- Overrides:
- update in class Plot
initialize
public void initialize(int level)
- Initialize, either partially or completely.
- Overrides:
- initialize in class Plot
- See Also:
- initialize
All Packages Class Hierarchy This Package Previous Next Index