Class ResultVectorTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
weka.clusterers.forOPTICSAndDBScan.OPTICS_GUI.ResultVectorTableModel
- All Implemented Interfaces:
Serializable
,TableModel
,RevisionHandler
ResultVectorTableModel.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht
Date: Sep 12, 2004
Time: 9:23:31 PM
$ Revision 1.4 $
- Version:
- $Revision: 1.4 $
- Author:
- Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de), Rainer Holzmann (holzmann@cip.ifi.lmu.de)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResultVectorTableModel
(FastVector resultVector) Constructs a defaultDefaultTableModel
which is a table of zero columns and zero rows. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of columns of this model.Returns the revision string.int
Returns the number of rows of this model.getValueAt
(int row, int column) Returns the value for the JTable for a given position.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
ResultVectorTableModel
Constructs a defaultDefaultTableModel
which is a table of zero columns and zero rows.
-
-
Method Details
-
getRowCount
public int getRowCount()Returns the number of rows of this model. The number of rows is the number of dataObjects stored in the resultVector- Specified by:
getRowCount
in interfaceTableModel
- Returns:
- the number of rows of this model
-
getColumnCount
public int getColumnCount()Returns the number of columns of this model. The number of columns is 4 (dataObject.key, dataobject, c_dist, r_dist)- Specified by:
getColumnCount
in interfaceTableModel
- Returns:
- int The number of columns of this model
-
getValueAt
Returns the value for the JTable for a given position.- Specified by:
getValueAt
in interfaceTableModel
- Parameters:
row
- The row of the valuecolumn
- The column of the value- Returns:
- value
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-