Class KenwoodRadioViewPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Closeable, Serializable, AutoCloseable, Accessible, DuplicateCheckedAX25Listener, GpsDataListener, BeaconChangeListener

public class KenwoodRadioViewPane extends JPanel implements DuplicateCheckedAX25Listener, GpsDataListener, BeaconChangeListener, Closeable
This panel displays the most recently received message in a format similar to the Kenwood TM-D710 control head.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • KenwoodRadioViewPane

      public KenwoodRadioViewPane(Message msg)
      Create a KenwoodRadioViewPane
      Parameters:
      msg - APRS Message to display frozen, or null to get real-time feed
  • Method Details

    • consumeAX25Frame

      public void consumeAX25Frame(AX25Message msg, AX25Frame frame, Connector connector, boolean isDuplicate)
      Called when a AX.25 frame is received.
      Specified by:
      consumeAX25Frame in interface DuplicateCheckedAX25Listener
      Parameters:
      msg - decoded APRS message if the AX.25 frame contains an APRS packet, or null if the frame is not a recognized protocol
      frame - received AX25Frame
      connector - the PortConnector over which the frame was received
      isDuplicate - boolean true if this is a duplicate message (possibly received over a different digipeater path)
    • getStationOverlay

      public static char getStationOverlay(StationState ss)
      Get the overlay character to render on top of an alternate table symbol icon. Note this returns the NUL control character if there is no overlay, either because the symbol table ID is for the APRS 1.0.1 primary or alternate table, or because the ID is for a registered APRS 1.2 extended symbol and extended symbol use is enabled.
      Parameters:
      ss - StationState to test
      Returns:
      overlay char, or '\0' if no overlay
    • close

      public void close()
      Shut down any monitoring done by the KenwoodRadioViewPane when its window is closed.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • gpsDataUpdated

      public void gpsDataUpdated(GPSDistributor distributor, GpsFix currentFix, boolean isLocal, String source)
      Called by the GPSDistributor when the GPS data has been updated.
      Specified by:
      gpsDataUpdated in interface GpsDataListener
      Parameters:
      distributor - instance of the GPSDistributor
      currentFix - current GpsFix
      isLocal - boolean true if this is GPS data for the local station, false if for a remote GPS receiver
      source - String name assigned to remote GPS receiver, or null if for the local receiver
    • satDataUpdated

      public void satDataUpdated(GPSDistributor distributor, SatelliteCatalog satCatalog, boolean isLocal, String source)
      Called when the satellite constellation in use changes.
      Specified by:
      satDataUpdated in interface GpsDataListener
      Parameters:
      distributor - instance of the GPSDistributor
      satCatalog - updated SatelliteCatalog instance
      isLocal - boolean true if this is GPS data for the local station, false if for a remote GPS receiver
      source - String name assigned to remote GPS receiver, or null if for the local receiver
    • beaconChanged

      public void beaconChanged(BeaconData beaconData)
      This method is called for registered implementors when changed beacon data is stored to preferences.
      Specified by:
      beaconChanged in interface BeaconChangeListener
      Parameters:
      beaconData - BeaconData record that has been changed