JSci.awt
Class DefaultGraph2DModel.DataSeries
java.lang.Object
javax.swing.table.AbstractTableModel
JSci.awt.DefaultGraph2DModel.DataSeries
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
- Enclosing class:
- DefaultGraph2DModel
public static class DefaultGraph2DModel.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
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
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 |
xAxis
protected float[] xAxis
series
protected float[] series
DefaultGraph2DModel.DataSeries
protected DefaultGraph2DModel.DataSeries()
DefaultGraph2DModel.DataSeries
public DefaultGraph2DModel.DataSeries(float[] xValues,
float[] yValues)
DefaultGraph2DModel.DataSeries
public DefaultGraph2DModel.DataSeries(float[] xValues,
double[] yValues)
DefaultGraph2DModel.DataSeries
public DefaultGraph2DModel.DataSeries(double[] xValues,
double[] yValues)
setXAxis
public void setXAxis(float[] xValues)
setXAxis
public void setXAxis(double[] xValues)
setValues
public void setValues(float[] yValues)
setValues
public void setValues(double[] yValues)
getXCoord
public float getXCoord(int i)
setXCoord
public void setXCoord(int i,
float x)
getValue
public float getValue(int i)
setValue
public void setValue(int i,
float y)
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