Class GPSStatusDialog

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

public class GPSStatusDialog extends JFrame implements GpsDataListener
This class displays the current state of the GPS receiver as a non-modal dialog.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • GPSStatusDialog

      public GPSStatusDialog(ResourceBundle msgBundle)
      Create a GPS status dialog instance for monitoring all GPS receivers connected to YAAC.
      Parameters:
      msgBundle - ResourceBundle for extracting localized labels for the dialog
      See Also:
  • Method Details

    • 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 position data reported by the local GPS
      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