public class MeasurementEvaluationStatisticsTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
protected List<String> |
m_Classifiers
the classifiers.
|
protected List<String> |
m_Datasets
the datasets.
|
protected String |
m_Measurement
the measurement.
|
protected boolean |
m_ShowIndex
whether to show the classifier or an index in the column header.
|
protected List<EvaluationStatistics> |
m_Statistics
the underlying statistics.
|
listenerList
Constructor and Description |
---|
MeasurementEvaluationStatisticsTableModel()
Initializes the model with no statistics.
|
MeasurementEvaluationStatisticsTableModel(List<EvaluationStatistics> stats,
String measurement,
boolean showIndex)
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.
|
String |
getMeasurement()
Returns the measurement the model is for.
|
int |
getRowCount()
Returns the number of datasets in this model.
|
boolean |
getShowIndex()
Returns whethert o show an index or the classifier in the header.
|
List<EvaluationStatistics> |
getStatistics()
Returns the underlying statistics.
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the cell value at the specified location.
|
void |
setMeasurement(String value)
Sets the measurement the model is for.
|
void |
setShowIndex(boolean value)
Sets whether to show an index or the classifier in the header.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
protected List<EvaluationStatistics> m_Statistics
protected String m_Measurement
protected boolean m_ShowIndex
public MeasurementEvaluationStatisticsTableModel()
public MeasurementEvaluationStatisticsTableModel(List<EvaluationStatistics> stats, String measurement, boolean showIndex)
stats
- the statistics to usemeasurement
- the measurement to displayshowIndex
- whether to show an index or the classifier in the headerpublic 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 void setMeasurement(String value)
value
- the measurementpublic String getMeasurement()
public void setShowIndex(boolean value)
value
- true if to show indexpublic boolean getShowIndex()
public List<EvaluationStatistics> getStatistics()
Copyright © 2017. All Rights Reserved.