Class GPSStatusPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, GpsDataListener

public class GPSStatusPane extends JTabbedPane implements GpsDataListener
This class displays the current state of the associated GPS receiver as a tabbed pane.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • GPSStatusPane

      public GPSStatusPane(ResourceBundle msgBundle, String name)
      Create a GPSStatus pane for the named GPS receiver.
      Parameters:
      msgBundle - ResourceBundle for obtaining localized label strings
      name - name of remote GPS (as configured in SerialGPSPortEditor) or null for local GPS
      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