Class RawPacketPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Closeable, Serializable, AutoCloseable, Runnable, EventListener, Accessible, ListSelectionListener, ScrollPaneConstants, FilterChangeListener, FontChangeListener

This class defines a scrolling table view for monitoring raw AX.25 frames.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Field Details

    • INITIAL_SORT

      public static final List<RowSorter.SortKey> INITIAL_SORT
      Default sort order for Raw Packets table.
  • Constructor Details

    • RawPacketPane

      public RawPacketPane(RawPacketTableModel stm, JLabel statusLabel, RelativeTimeFilter filter)
      Create a panel for displaying the raw packets table.
      Parameters:
      stm - RawPacketTableModel to render
      statusLabel - JLabel to contain extra status information based on the packet list
      filter - RelativeTimeFilter to control which packets are displayed
  • Method Details

    • updateStatusLabel

      public void updateStatusLabel()
      Refresh the text on the RawPacketFrame's status label.
    • filterSettingsChanged

      public void filterSettingsChanged(Filter changedFilter, boolean changedByUser)
      Called when the specified Filter's matching criteria have been changed.
      Specified by:
      filterSettingsChanged in interface FilterChangeListener
      Parameters:
      changedFilter - Filter that has changed
      changedByUser - boolean true if change was manually made by user, false if change was made automatically by dynamic filter logic
    • run

      public final void run()
      DO NOT CALL. Thread body to re-sort the table when the filter settings are changed.
      Specified by:
      run in interface Runnable
    • close

      public void close() throws IOException
      Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException - if an I/O error occurs
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      Called whenever the value of the selection changes.
      Specified by:
      valueChanged in interface ListSelectionListener
      Parameters:
      e - the event that characterizes the change.
    • fontChanged

      public void fontChanged(String category, Font newFont)
      Report that the font choice for the specified category has changed.
      Specified by:
      fontChanged in interface FontChangeListener
      Parameters:
      category - String font family name (as defined by Font class)
      newFont - actual font instance