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:
  • 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 columns
      rows - int; the number of rows
      dataProducer - EventProducer; the statistic that produces the updates to the table
      eventTypes - EventType[]; the eventTypes after which the StatisticsTable should update its content
      Throws:
      RemoteException - when there is a problem communicating with the data producing table