Class PacketSourceFilter

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

public class PacketSourceFilter extends JPanel implements ComponentListener, FilterChangeListener, Closeable
This filter selects packets and messages based on which interface port the message entered YAAC through. All open ports that have capability CAP_RCV_PACKET_DATA will show up on the filter's port list, as well as the null source (which represents loading messages from a file).
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • PacketSourceFilter

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

    • componentResized

      public void componentResized(ComponentEvent e)
      Invoked when the component's size changes.
      Specified by:
      componentResized in interface ComponentListener
    • componentMoved

      public void componentMoved(ComponentEvent e)
      Invoked when the component's position changes.
      Specified by:
      componentMoved in interface ComponentListener
    • componentShown

      public void componentShown(ComponentEvent e)
      Invoked when the component has been made visible.
      Specified by:
      componentShown in interface ComponentListener
    • componentHidden

      public void componentHidden(ComponentEvent e)
      Invoked when the component has been made invisible.
      Specified by:
      componentHidden in interface ComponentListener
    • 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