Class StatsWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class StatsWindow extends AuxWindow
A window which displays statistics for a RowSubset in the table.
Author:
Mark Taylor (Starlink)
See Also:
  • Constructor Details

    • StatsWindow

      public StatsWindow(TopcatModel tcModel, Component parent)
      Constructs a StatsWindow to report on the statistics of data in a given TableViewer. Initially, no results are displayed; call the setSubset(uk.ac.starlink.topcat.RowSubset) method to show some statistics.
      Parameters:
      tcModel - model containing the data for the table concerned
      parent - component used for window positioning
  • Method Details

    • setSubset

      public void setSubset(RowSubset rset)
      Sets the RowSubset for which results are to be calculated. This begins calculation of the statistics in a separate thread; the table will be updated when the stats have been calculated. This method will therefore return quickly, and may be called on the event dispatcher thread. Any pre-existing calculation will be aborted, since its results will not now be required.
      Parameters:
      rset - the RowSubset for which results are to be displayed
    • dispose

      public void dispose()
      Extends the dispose method to interrupt any pending calculations.
      Overrides:
      dispose in class Window