org.jscience.awt
Class DefaultGraph3DModel.DataSeries

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.jscience.awt.DefaultGraph3DModel.DataSeries
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
DefaultGraph3DModel

public static class DefaultGraph3DModel.DataSeries
extends javax.swing.table.AbstractTableModel

The DataSeries class encapsulates a data series for a graph.

See Also:
Serialized Form

Field Summary
protected  float[] series
          DOCUMENT ME!
protected  float[] xAxis
          DOCUMENT ME!
protected  float[] yAxis
          DOCUMENT ME!
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
protected DefaultGraph3DModel.DataSeries()
          Creates a new DataSeries object.
  DefaultGraph3DModel.DataSeries(double[] xValues, double[] yValues, double[] zValues)
          Creates a new DataSeries object.
  DefaultGraph3DModel.DataSeries(float[] xValues, float[] yValues, double[] zValues)
          Creates a new DataSeries object.
  DefaultGraph3DModel.DataSeries(float[] xValues, float[] yValues, float[] zValues)
          Creates a new DataSeries object.
 
Method Summary
 java.lang.Class getColumnClass(int col)
          DOCUMENT ME!
 int getColumnCount()
          DOCUMENT ME!
 java.lang.String getColumnName(int col)
          DOCUMENT ME!
 int getRowCount()
          DOCUMENT ME!
 float getValue(int i)
          DOCUMENT ME!
 java.lang.Object getValueAt(int row, int col)
          DOCUMENT ME!
 float getXCoord(int i)
          DOCUMENT ME!
 float getYCoord(int i)
          DOCUMENT ME!
 boolean isCellEditable(int row, int col)
          DOCUMENT ME!
 boolean isVisible()
          DOCUMENT ME!
 int length()
          DOCUMENT ME!
 void setValue(int i, float z)
          DOCUMENT ME!
 void setValueAt(java.lang.Object value, int row, int col)
          DOCUMENT ME!
 void setValues(double[] zValues)
          DOCUMENT ME!
 void setValues(float[] zValues)
          DOCUMENT ME!
 void setVisible(boolean flag)
          DOCUMENT ME!
 void setXAxis(double[] xValues)
          DOCUMENT ME!
 void setXAxis(float[] xValues)
          DOCUMENT ME!
 void setXCoord(int i, float x)
          DOCUMENT ME!
 void setYAxis(double[] yValues)
          DOCUMENT ME!
 void setYAxis(float[] yValues)
          DOCUMENT ME!
 void setYCoord(int i, float y)
          DOCUMENT ME!
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xAxis

protected float[] xAxis
DOCUMENT ME!


yAxis

protected float[] yAxis
DOCUMENT ME!


series

protected float[] series
DOCUMENT ME!

Constructor Detail

DefaultGraph3DModel.DataSeries

protected DefaultGraph3DModel.DataSeries()
Creates a new DataSeries object.


DefaultGraph3DModel.DataSeries

public DefaultGraph3DModel.DataSeries(float[] xValues,
                                      float[] yValues,
                                      float[] zValues)
Creates a new DataSeries object.

Parameters:
xValues - DOCUMENT ME!
yValues - DOCUMENT ME!
zValues - DOCUMENT ME!

DefaultGraph3DModel.DataSeries

public DefaultGraph3DModel.DataSeries(float[] xValues,
                                      float[] yValues,
                                      double[] zValues)
Creates a new DataSeries object.

Parameters:
xValues - DOCUMENT ME!
yValues - DOCUMENT ME!
zValues - DOCUMENT ME!

DefaultGraph3DModel.DataSeries

public DefaultGraph3DModel.DataSeries(double[] xValues,
                                      double[] yValues,
                                      double[] zValues)
Creates a new DataSeries object.

Parameters:
xValues - DOCUMENT ME!
yValues - DOCUMENT ME!
zValues - DOCUMENT ME!
Method Detail

setXAxis

public void setXAxis(float[] xValues)
DOCUMENT ME!

Parameters:
xValues - DOCUMENT ME!

setXAxis

public void setXAxis(double[] xValues)
DOCUMENT ME!

Parameters:
xValues - DOCUMENT ME!

setYAxis

public void setYAxis(float[] yValues)
DOCUMENT ME!

Parameters:
yValues - DOCUMENT ME!

setYAxis

public void setYAxis(double[] yValues)
DOCUMENT ME!

Parameters:
yValues - DOCUMENT ME!

setValues

public void setValues(float[] zValues)
DOCUMENT ME!

Parameters:
zValues - DOCUMENT ME!

setValues

public void setValues(double[] zValues)
DOCUMENT ME!

Parameters:
zValues - DOCUMENT ME!

getXCoord

public float getXCoord(int i)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

setXCoord

public void setXCoord(int i,
                      float x)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
x - DOCUMENT ME!

getYCoord

public float getYCoord(int i)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

setYCoord

public void setYCoord(int i,
                      float y)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
y - DOCUMENT ME!

getValue

public float getValue(int i)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

setValue

public void setValue(int i,
                     float z)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
z - DOCUMENT ME!

length

public int length()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setVisible

public final void setVisible(boolean flag)
DOCUMENT ME!

Parameters:
flag - DOCUMENT ME!

isVisible

public final boolean isVisible()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getColumnName

public java.lang.String getColumnName(int col)
DOCUMENT ME!

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel
Parameters:
col - DOCUMENT ME!
Returns:
DOCUMENT ME!

getColumnClass

public java.lang.Class getColumnClass(int col)
DOCUMENT ME!

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel
Parameters:
col - DOCUMENT ME!
Returns:
DOCUMENT ME!

getRowCount

public final int getRowCount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getColumnCount

public final int getColumnCount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
DOCUMENT ME!

Parameters:
row - DOCUMENT ME!
col - DOCUMENT ME!
Returns:
DOCUMENT ME!

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
DOCUMENT ME!

Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel
Parameters:
value - DOCUMENT ME!
row - DOCUMENT ME!
col - DOCUMENT ME!

isCellEditable

public boolean isCellEditable(int row,
                              int col)
DOCUMENT ME!

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel
Parameters:
row - DOCUMENT ME!
col - DOCUMENT ME!
Returns:
DOCUMENT ME!