gov.sns.tools.plot
Class PlotJF

java.lang.Object
  |
  +--gov.sns.tools.plot.PlotJF
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.TableModelListener

public class PlotJF
extends java.lang.Object
implements java.awt.event.ActionListener, javax.swing.event.TableModelListener


Constructor Summary
PlotJF(java.util.ArrayList x, java.util.ArrayList y)
          This constructor is for x-y plots with multiple curvess and no legend.
PlotJF(java.util.ArrayList x, java.util.ArrayList y, java.util.ArrayList n)
          This constructor is for x-y plots with multiple curvess and with a legend.
PlotJF(double[] x, double[] y)
          This constructor is for a simple x-y plot class, for a single curve
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void plotIt()
          The routine that actually creates and starts the plots
 void tableChanged(javax.swing.event.TableModelEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotJF

public PlotJF(double[] x,
              double[] y)
       throws XalException
This constructor is for a simple x-y plot class, for a single curve

Parameters:
x - - array of doubles containing the x values
y - - array of doubles containing the y values

PlotJF

public PlotJF(java.util.ArrayList x,
              java.util.ArrayList y)
       throws XalException
This constructor is for x-y plots with multiple curvess and no legend. Data is entered in the form of ArrayLists. Each element of the ArrayList is a double array containing the data to be plotted. The first curve has its x data points stored in the first element of the "x" ArrayList. Similar for the y points. Note: each curve can have different number of points.

Parameters:
x - - ArrayList of double arrays containing the x values
y - - ArrayList of double arrays containing the y values note: each ArrayList should have the same number of elements.

PlotJF

public PlotJF(java.util.ArrayList x,
              java.util.ArrayList y,
              java.util.ArrayList n)
       throws XalException
This constructor is for x-y plots with multiple curvess and with a legend. Data is entered in the form of ArrayLists. Each element of the ArrayList is a double array containing the data to be plotted. The first curve has its x data points stored in the first element of the "x" ArrayList. Similar for the y points. Note: each curve can have different number of points.

Parameters:
x - - ArrayList of double arrays containing the x values
y - - ArrayList of double arrays containing the y values
n - - ArrayList of Strings containing the curve labels note: each ArrayList should have the same number of elements.
Method Detail

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Specified by:
tableChanged in interface javax.swing.event.TableModelListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

plotIt

public void plotIt()
The routine that actually creates and starts the plots