JSci.awt
Class DefaultGraph3DModel.DataSeries

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by JSci.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
           
protected  float[] xAxis
           
protected  float[] yAxis
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
protected DefaultGraph3DModel.DataSeries()
           
  DefaultGraph3DModel.DataSeries(double[] xValues, double[] yValues, double[] zValues)
           
  DefaultGraph3DModel.DataSeries(float[] xValues, float[] yValues, double[] zValues)
           
  DefaultGraph3DModel.DataSeries(float[] xValues, float[] yValues, float[] zValues)
           
 
Method Summary
 java.lang.Class getColumnClass(int col)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 int getRowCount()
           
 float getValue(int i)
           
 java.lang.Object getValueAt(int row, int col)
           
 float getXCoord(int i)
           
 float getYCoord(int i)
           
 boolean isCellEditable(int row, int col)
           
 boolean isVisible()
           
 int length()
           
 void setValue(int i, float z)
           
 void setValueAt(java.lang.Object value, int row, int col)
           
 void setValues(double[] zValues)
           
 void setValues(float[] zValues)
           
 void setVisible(boolean flag)
           
 void setXAxis(double[] xValues)
           
 void setXAxis(float[] xValues)
           
 void setXCoord(int i, float x)
           
 void setYAxis(double[] yValues)
           
 void setYAxis(float[] yValues)
           
 void setYCoord(int i, float y)
           
 
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

yAxis

protected float[] yAxis

series

protected float[] series
Constructor Detail

DefaultGraph3DModel.DataSeries

protected DefaultGraph3DModel.DataSeries()

DefaultGraph3DModel.DataSeries

public DefaultGraph3DModel.DataSeries(float[] xValues,
                                      float[] yValues,
                                      float[] zValues)

DefaultGraph3DModel.DataSeries

public DefaultGraph3DModel.DataSeries(float[] xValues,
                                      float[] yValues,
                                      double[] zValues)

DefaultGraph3DModel.DataSeries

public DefaultGraph3DModel.DataSeries(double[] xValues,
                                      double[] yValues,
                                      double[] zValues)
Method Detail

setXAxis

public void setXAxis(float[] xValues)

setXAxis

public void setXAxis(double[] xValues)

setYAxis

public void setYAxis(float[] yValues)

setYAxis

public void setYAxis(double[] yValues)

setValues

public void setValues(float[] zValues)

setValues

public void setValues(double[] zValues)

getXCoord

public float getXCoord(int i)

setXCoord

public void setXCoord(int i,
                      float x)

getYCoord

public float getYCoord(int i)

setYCoord

public void setYCoord(int i,
                      float y)

getValue

public float getValue(int i)

setValue

public void setValue(int i,
                     float z)

length

public int length()

setVisible

public final void setVisible(boolean flag)

isVisible

public final boolean isVisible()

getColumnName

public java.lang.String getColumnName(int col)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnClass

public java.lang.Class getColumnClass(int col)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

getRowCount

public final int getRowCount()

getColumnCount

public final int getColumnCount()

getValueAt

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

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel