Class LatLongControl

java.lang.Object
loggerForms.controls.LoggerControl
loggerForms.controls.LatLongControl
All Implemented Interfaces:
ClipboardOwner

public class LatLongControl extends LoggerControl implements ClipboardOwner

holds gps stamp, both lat and lon will save separately in the data base but will display in between 1 to 3(if time too) fields on the form and in one in the data table. will probably extend this to give GPSTimestamp which will bundle in a timestamp field too.

Author:
GrahamWeatherup
  • Field Details Link icon

    • latDegMax Link icon

      public static int latDegMax
    • latDegMin Link icon

      public static int latDegMin
    • lonDegMax Link icon

      public static int lonDegMax
    • lonDegMin Link icon

      public static int lonDegMin
    • minNsecMax Link icon

      public static int minNsecMax
    • minNsecMin Link icon

      public static int minNsecMin
  • Constructor Details Link icon

    • LatLongControl Link icon

      public LatLongControl(ControlDescription controlDescription, LoggerForm loggerForm)
      Parameters:
      controlDescription -
      loggerForm -
  • Method Details Link icon

    • getChannelArray Link icon

      public Integer[] getChannelArray(String channelsStr)
      Parameters:
      channelsStr -
      Returns:
    • getData Link icon

      public Object getData()
      Specified by:
      getData in class LoggerControl
      Returns:
      data from field(s) of component
    • autoUpdate Link icon

      public int autoUpdate()
      Description copied from class: LoggerControl
      Automatically update a control. This is only possible for controls such as time, timestamps and NMEA items.
      Overrides:
      autoUpdate in class LoggerControl
      Returns:
      AUTO_UPDATE_SUCCESS, AUTO_UPDATE_FAIL or AUTO_UPDATE_CANT
    • setData Link icon

      public void setData(Object latLong)
      Description copied from class: LoggerControl
      this will populate the Field with either last entered data or most up to date entry
      Specified by:
      setData in class LoggerControl
    • setDefault Link icon

      public void setDefault()
      Description copied from class: LoggerControl
      Return to the default value based on the associated control description
      Specified by:
      setDefault in class LoggerControl
    • lostOwnership Link icon

      public void lostOwnership(Clipboard arg0, Transferable arg1)
      Specified by:
      lostOwnership in interface ClipboardOwner
    • getDataError Link icon

      public String getDataError()
      Specified by:
      getDataError in class LoggerControl
      Returns:
    • fillNMEAControlData Link icon

      public int fillNMEAControlData(NMEADataUnit dataUnit)
      The end-result of an auto-update of Lat-Long
      Specified by:
      fillNMEAControlData in class LoggerControl
      Parameters:
      dataUnit - NMEA data unit
      Returns:
      success flag.