All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.swing.JContourPlot

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----JSci.swing.JDoubleBufferedComponent
                                   |
                                   +----JSci.swing.JContourPlot

public final class JContourPlot
extends JDoubleBufferedComponent
implements ColorScheme
A contour plot Swing component.


Constructor Index

 o JContourPlot(double[][])
Constructs a contour plot.

Method Index

 o getColor(float)
 o getMinimumSize()
Returns the minimum size of this component.
 o getPreferredSize()
Returns the preferred size of this component.
 o offscreenPaint(Graphics)
Paint the graph.
 o setBounds(int, int, int, int)
 o setColor(float, float, float)
Set the color for the contour of the graph.
 o setColorScheme(ColorScheme)
 o setContourX(int)
There is a box around the graph, this sets how wide it will be in the horizontal direction.
 o setContourY(int)
There is a box around the graph, this sets how wide it will be in the vertical direction.
 o setData(double[][])
Sets the data plotted by this JContourPlot to the specified data.

Constructors

 o JContourPlot
 public JContourPlot(double array[][])
Constructs a contour plot.

Methods

 o setData
 public void setData(double feed[][])
Sets the data plotted by this JContourPlot to the specified data.

 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of this component.

Overrides:
getPreferredSize in class JComponent
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this component.

Overrides:
getMinimumSize in class JComponent
 o 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
 o 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
 o setBounds
 public void setBounds(int x,
                       int y,
                       int width,
                       int height)
Overrides:
setBounds in class Component
 o setColor
 public void setColor(float x1,
                      float x2,
                      float x3)
Set the color for the contour of the graph.

Throws: IllegalArgumentException
if one of the parameters is not between 0 and 1
Throws: IllegalArgumentException
if all three arguments are set to zero.
 o getColor
 public Color getColor(float f)
 o setColorScheme
 public void setColorScheme(ColorScheme cs)
 o offscreenPaint
 protected void offscreenPaint(Graphics g)
Paint the graph.

Overrides:
offscreenPaint in class JDoubleBufferedComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index