    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.

##

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

##

getColor(float)
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 contour of the graph.
setColorScheme(ColorScheme)
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 JContourPlot to the specified data.

##

JContourPlot

     public JContourPlot(double array[][])

  Constructs a contour plot.

##

setData

     public void setData(double feed[][])

  Sets the data plotted by this JContourPlot to the specified data.

getPreferredSize

     public Dimension getPreferredSize()

  Returns the preferred size of this component.

  Overrides:
    getPreferredSize in class JComponent

getMinimumSize

     public Dimension getMinimumSize()

  Returns the minimum size of this component.

  Overrides:
    getMinimumSize in class JComponent

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 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.

getColor

     public Color getColor(float f)

setColorScheme

     public void setColorScheme(ColorScheme cs)

offscreenPaint

     protected void offscreenPaint(Graphics g)

  Paint the graph.

  Overrides:
    offscreenPaint in class JDoubleBufferedComponent

    All Packages  Class Hierarchy  This Package  Previous  Next  Index