Class StationClassFilter

All Implemented Interfaces:
ItemListener, ImageObserver, MenuContainer, Closeable, Serializable, AutoCloseable, EventListener, Accessible, FilterChangeListener

public class StationClassFilter extends JPanel implements ItemListener, FilterChangeListener, Closeable
This filter allows selecting stations and messages solely by category of sending station. These are the categories used by Kenwood in their APRS-capable transceivers, and the categories overlap.
  • all stations (suppresses the rest of these filters)
  • weather stations
  • 1-way (transmit-only) stations
  • Navitra stations (not yet implemented)
  • Object and Item reports
  • mobile stations
  • digipeater stations
  • other stations not meeting any of the above categories
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • StationClassFilter

      public StationClassFilter(StationClassFilter myFilter)
      Create a UI for controlling a StationClassFilter instance.
      Parameters:
      myFilter - StationClassFilter to control
  • Method Details

    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      DO NOT CALL. Event callback for checkbox toggling.
      Specified by:
      itemStateChanged in interface ItemListener
      Parameters:
      e - ItemEvent identifying changed checkbox
    • 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
    • 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