|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
adams.gui.core.AbstractBaseTableModel
adams.gui.visualization.instance.InstanceTableModel
public class InstanceTableModel
A generic table model for displaying weka.core.Instances objects.
| Field Summary | |
|---|---|
protected weka.core.Instances |
m_Data
the underlying data. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
InstanceTableModel(weka.core.Instances data)
Initializes the model. |
|
| Method Summary | |
|---|---|
protected weka.core.Attribute |
getAttribute(int column)
Returns the attribute for the given column. |
Class |
getColumnClass(int column)
Returns the class for the column. |
int |
getColumnCount()
Returns the number of columns in the table. |
String |
getColumnName(int column)
Returns the name of the column. |
weka.core.Instances |
getData()
Returns the underlying data. |
int |
getRowCount()
Returns the number of rows. |
Object |
getValueAt(int row,
int column)
Returns the value at the given position. |
boolean |
isSearchMatch(SearchParameters params,
int row)
Tests whether the search matches the specified row. |
| 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 |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt |
| Field Detail |
|---|
protected weka.core.Instances m_Data
| Constructor Detail |
|---|
public InstanceTableModel(weka.core.Instances data)
data - the underlying data| Method Detail |
|---|
protected weka.core.Attribute getAttribute(int column)
column - the column to get the underlying attribute for
public weka.core.Instances getData()
public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the column to retrieve the name for
public Object getValueAt(int row,
int column)
getValueAt in interface TableModelrow - the row in the tablecolumn - the column in the table
public Class getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumn - the column to retrieve the class for
public boolean isSearchMatch(SearchParameters params,
int row)
isSearchMatch in interface CustomSearchTableModelparams - the search parametersrow - the row of the underlying, unsorted model
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||