Class StatisticsTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
nl.tudelft.simulation.dsol.statistics.table.StatisticsTableModel
- All Implemented Interfaces:
Serializable
,Remote
,EventListener
,TableModel
,org.djutils.event.EventListener
- Direct Known Subclasses:
CounterTableModel
,PersistentTableModel
,TallyTableModel
public abstract class StatisticsTableModel
extends DefaultTableModel
implements org.djutils.event.EventListener
The StatisticsTableModel class defines the tableModel used to represent statistics objects as a table, e.g., on the screen or
on a web page. Although the TableModel is defined in swing, it is independent of its representation on the screen. The actual
representation of the table on the screen or on a web page can be found in the dsol-swing and dsol-web projects.
Copyright (c) 2002-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Alexander Verbraeck, Peter Jacobs
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorDescriptionStatisticsTableModel
(Object[] columnNames, int rows, org.djutils.event.EventProducer dataProducer, org.djutils.event.EventType[] eventTypes) constructs a new StatisticsTableModel. -
Method Summary
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.djutils.event.EventListener
notify
-
Constructor Details
-
StatisticsTableModel
public StatisticsTableModel(Object[] columnNames, int rows, org.djutils.event.EventProducer dataProducer, org.djutils.event.EventType[] eventTypes) throws RemoteException constructs a new StatisticsTableModel.- Parameters:
columnNames
- Object[]; the names of the columnsrows
- int; the number of rowsdataProducer
- EventProducer; the statistic that produces the updates to the tableeventTypes
- EventType[]; the eventTypes after which the StatisticsTable should update its content- Throws:
RemoteException
- when there is a problem communicating with the data producing table
-