All Packages Class Hierarchy This Package Previous Next Index
Class JSci.awt.ContourPlot
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----JSci.awt.DoubleBufferedCanvas
|
+----JSci.awt.ContourPlot
- public final class ContourPlot
- extends DoubleBufferedCanvas
A contour plot AWT component.
-
ContourPlot(double[][])
- Constructs a contour plot.
-
getMinimumSize()
- Returns the minimum size of this component.
-
getPreferredSize()
- Returns the preferred size of this component.
-
offscreenPaint(Graphics)
- Paint the graph.
-
setBounds(int, int, int, int)
-
-
setColor(float, float, float)
- Set the color for the graph.
-
setContourX(int)
- There is a box around the graph, this
sets how wide it will be in the horizontal direction.
-
setContourY(int)
- There is a box around the graph, this
sets how wide it will be in the vertical direction.
-
setData(double[][])
- Sets the data plotted by this ContourPlot to the specified data.
ContourPlot
public ContourPlot(double array[][])
- Constructs a contour plot.
setData
public void setData(double feed[][])
- Sets the data plotted by this ContourPlot to the specified data.
getPreferredSize
public Dimension getPreferredSize()
- Returns the preferred size of this component.
- Overrides:
- getPreferredSize in class Component
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size of this component.
- Overrides:
- getMinimumSize in class Component
setContourX
public void setContourX(int k)
- There is a box around the graph, this
sets how wide it will be in the horizontal direction.
- Parameters:
- k - width (in pixel)
- Throws: IllegalArgumentException
- if the width is not at least one
setContourY
public void setContourY(int k)
- There is a box around the graph, this
sets how wide it will be in the vertical direction.
- Parameters:
- k - width (in pixel)
- Throws: IllegalArgumentException
- if the width is not at least one
setBounds
public void setBounds(int x,
int y,
int width,
int height)
- Overrides:
- setBounds in class Component
setColor
public void setColor(float x1,
float x2,
float x3)
- Set the color for the graph. Note that the
box around the graph has this same color.
- Throws: IllegalArgumentException
- if
one of the parameters is not between 0 and 1
- Throws: IllegalArgumentException
- if
all three arguments are set to zero.
offscreenPaint
protected void offscreenPaint(Graphics g)
- Paint the graph.
- Overrides:
- offscreenPaint in class DoubleBufferedCanvas
All Packages Class Hierarchy This Package Previous Next Index