Class InformativeStatisticFactory.Model
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- adams.gui.core.AbstractBaseTableModel
-
- adams.gui.visualization.statistics.InformativeStatisticFactory.Model
-
- All Implemented Interfaces:
LoggingLevelHandler
,LoggingSupporter
,SpreadSheetSupporter
,Serializable
,TableModel
- Enclosing class:
- InformativeStatisticFactory
public static class InformativeStatisticFactory.Model extends AbstractBaseTableModel
A specialized model for an object implementing the InformativeStatistic interface.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Object[][]
m_Data
the data retrieved from the statistics object.protected InformativeStatistic
m_Statistic
the underlying object.-
Fields inherited from class adams.gui.core.AbstractBaseTableModel
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description Model(InformativeStatistic stat)
Initializes the model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.int
getRowCount()
Returns the number of rows/statistics.InformativeStatistic
getStatistic()
Returns the underlying chromatogram.Object
getValueAt(int row, int column)
Returns the value at the given position.protected void
initialize()
Retrieves the data from the statistic object.-
Methods inherited from class adams.gui.core.AbstractBaseTableModel
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, setLoggingLevel, toSpreadSheet, toString
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
m_Statistic
protected InformativeStatistic m_Statistic
the underlying object.
-
m_Data
protected Object[][] m_Data
the data retrieved from the statistics object.
-
-
Constructor Detail
-
Model
public Model(InformativeStatistic stat)
Initializes the model.- Parameters:
stat
- the statistics object
-
-
Method Detail
-
initialize
protected void initialize()
Retrieves the data from the statistic object.
-
getStatistic
public InformativeStatistic getStatistic()
Returns the underlying chromatogram.- Returns:
- the data
-
getRowCount
public int getRowCount()
Returns the number of rows/statistics.- Returns:
- the number of rows
-
getColumnCount
public int getColumnCount()
Returns the number of columns in the table.- Returns:
- the number of columns
-
getColumnName
public String getColumnName(int column)
Returns the name of the column.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
column
- the column to retrieve the name for- Returns:
- the name of the column
-
getValueAt
public Object getValueAt(int row, int column)
Returns the value at the given position.- Parameters:
row
- the row in the tablecolumn
- the column in the table- Returns:
- the value
-
getColumnClass
public Class getColumnClass(int column)
Returns the class for the column.- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
- Parameters:
column
- the column to retrieve the class for- Returns:
- the class
-
-