Save This Page
Home » jcommon-1.0.13 » org.jfree » data » xy » [javadoc | source]
org.jfree.data.xy
public class: XYDatasetTableModel [javadoc | source]
java.lang.Object
   javax.swing.table.AbstractTableModel
      org.jfree.data.xy.XYDatasetTableModel

All Implemented Interfaces:
    TableModel, DatasetChangeListener, Serializable

A READ-ONLY wrapper around a TableXYDataset to convert it to a table model for use in a JTable. The first column of the table shows the x-values, the remaining columns show the y-values for each series (series 0 appears in column 1, series 1 appears in column 2, etc).

TO DO:

Field Summary
 TableXYDataset model    The dataset. 
Constructor:
 public XYDatasetTableModel() 
 public XYDatasetTableModel(TableXYDataset dataset) 
    Creates a new table model based on the specified dataset.
    Parameters:
    dataset - the dataset.
Method from org.jfree.data.xy.XYDatasetTableModel Summary:
datasetChanged,   getColumnCount,   getColumnName,   getRowCount,   getValueAt,   isCellEditable,   setModel,   setValueAt
Methods from javax.swing.table.AbstractTableModel:
addTableModelListener,   findColumn,   fireTableCellUpdated,   fireTableChanged,   fireTableDataChanged,   fireTableRowsDeleted,   fireTableRowsInserted,   fireTableRowsUpdated,   fireTableStructureChanged,   getColumnClass,   getColumnName,   getListeners,   getTableModelListeners,   isCellEditable,   removeTableModelListener,   setValueAt
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.data.xy.XYDatasetTableModel Detail:
 public  void datasetChanged(DatasetChangeEvent event) 
    Receives notification that the underlying dataset has changed.
 public int getColumnCount() 
    Gets the number of columns in the model.
 public String getColumnName(int column) 
    Returns the column name.
 public int getRowCount() 
    Returns the number of rows.
 public Object getValueAt(int row,
    int column) 
    Returns a value of the specified cell. Column 0 is the X axis, Columns 1 and over are the Y axis
 public boolean isCellEditable(int row,
    int column) 
    Returns a flag indicating whether or not the specified cell is editable.
 public  void setModel(TableXYDataset dataset) 
    Sets the model (dataset).
 public  void setValueAt(Object value,
    int row,
    int column)