JSci.awt
Class DefaultCategoryGraph2DModel.DataSeries
java.lang.Object
javax.swing.table.AbstractTableModel
JSci.awt.DefaultCategoryGraph2DModel.DataSeries
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
- Enclosing class:
- DefaultCategoryGraph2DModel
public static class DefaultCategoryGraph2DModel.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 java.lang.Object[] |
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 java.lang.Object[] xAxis
series
protected float[] series
DefaultCategoryGraph2DModel.DataSeries
protected DefaultCategoryGraph2DModel.DataSeries()
DefaultCategoryGraph2DModel.DataSeries
public DefaultCategoryGraph2DModel.DataSeries(java.lang.Object[] xValues,
float[] yValues)
DefaultCategoryGraph2DModel.DataSeries
public DefaultCategoryGraph2DModel.DataSeries(java.lang.Object[] xValues,
double[] yValues)
setCategories
public void setCategories(java.lang.Object[] xValues)
setValues
public void setValues(float[] yValues)
setValues
public void setValues(double[] yValues)
getCategory
public java.lang.Object getCategory(int i)
setCategory
public void setCategory(int i,
java.lang.Object 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