Class GpsLogBoundsSelector

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GpsLogBoundsSelector extends JPanel
Panel for specifying the upper or lower bounds for selecting records from a YAAC GPS log file. The bound can be specified as either a timestamp (from a range provided as the outermost bounds of the file), or a marker string extracted from the file.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • GpsLogBoundsSelector

      public GpsLogBoundsSelector(boolean minimum, long minTime, long maxTime)
      Create a log file bounds selector widget.
      Parameters:
      minimum - boolean true if this is for the earliest bound, false for the latest bound
      minTime - long minimum log time in Java milliseconds since Jan 1 1970 UTC
      maxTime - long maximum log time in Java milliseconds since Jan 1 1970 UTC
  • Method Details

    • setMarkerList

      public void setMarkerList(ArrayList<String> markers)
      Add or replace the marker list for choosing list bounds.
      Parameters:
      markers - ArrayList of marker Strings in earliest-to-latest order
    • setOtherSelector

      public void setOtherSelector(GpsLogBoundsSelector selector)
      Specify the GpsLogBoundsSelector for the opposite bound, so that narrowing selections adjusts the range for the other selector.
      Parameters:
      selector - GpsLogBoundsSelector for other bound
    • getSelectedTime

      public long getSelectedTime()
      Get the selected time boundary.
      Returns:
      long boundary time in Java milliseconds since Jan 1 1970 UTC
    • getSelectedMarker

      public String getSelectedMarker()
      Get the currently selected marker (if any to be selected and is selected).
      Returns:
      selected marker String, or empty string if not selected