org.jfree.report.demo
Class SampleData2

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.jfree.report.demo.SampleData2
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class SampleData2
extends javax.swing.table.AbstractTableModel

A sample data source for the JFreeReport Demo Application.

Author:
David Gilbert
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SampleData2()
          Default constructor - builds a sample data source.
 
Method Summary
 java.lang.Class getColumnClass(int column)
          Returns the class of the data in the specified column.
 int getColumnCount()
          Returns the number of columns in the table model.
 java.lang.String getColumnName(int column)
          Returns the name of the specified column.
 int getRowCount()
          Returns the number of rows in the table model.
 java.lang.Object getValueAt(int row, int column)
          Returns the data value at the specified row and column.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleData2

public SampleData2()
Default constructor - builds a sample data source.

Method Detail

getRowCount

public int getRowCount()
Returns the number of rows in the table model.

Returns:
the row count.

getColumnCount

public int getColumnCount()
Returns the number of columns in the table model.

Returns:
the column count.

getColumnClass

public java.lang.Class getColumnClass(int column)
Returns the class of the data in the specified column.

Parameters:
column - the column (zero-based index).
Returns:
the column class.

getColumnName

public java.lang.String getColumnName(int column)
Returns the name of the specified column.

Parameters:
column - the column (zero-based index).
Returns:
the column name.

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Returns the data value at the specified row and column.

Parameters:
row - the row index (zero based).
column - the column index (zero based).
Returns:
the value.