public class EvaluationStatisticsTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
protected List<String> |
m_Headers
the headers.
|
protected List<EvaluationStatistics> |
m_Statistics
the underlying statistics.
|
listenerList
Constructor and Description |
---|
EvaluationStatisticsTableModel()
Initializes the model with no statistics.
|
EvaluationStatisticsTableModel(List<EvaluationStatistics> stats)
Initializes the model with the statistics.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getColumnClass(int columnIndex)
Returns the type of the column.
|
int |
getColumnCount()
The number of columns in this model.
|
String |
getColumnName(int column)
Returns the name of the column.
|
int |
getRowCount()
Returns the number of statistics in this model.
|
List<EvaluationStatistics> |
getStatistics()
Returns the underlying statistics.
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the cell value at the specified location.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
protected List<EvaluationStatistics> m_Statistics
public EvaluationStatisticsTableModel()
public EvaluationStatisticsTableModel(List<EvaluationStatistics> stats)
stats
- the statistics to usepublic String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column indexpublic int getRowCount()
public int getColumnCount()
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
columnIndex
- the column indexpublic Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- the rowcolumnIndex
- the columnpublic List<EvaluationStatistics> getStatistics()
Copyright © 2017. All Rights Reserved.