Class GpxDataHelper


  • public final class GpxDataHelper
    extends java.lang.Object
    Helper class to select and load "GPX data" (GPX, NMEA, pos) files.
    Since:
    18042
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private GpxDataHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File chooseGpxDataFile()
      Opens a file chooser to let the user select a "GPX data" file and returns it.
      static GpxData loadGpxData​(java.io.File file)
      Loads GpxData from the given file and returns it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • chooseGpxDataFile

        public static java.io.File chooseGpxDataFile()
        Opens a file chooser to let the user select a "GPX data" file and returns it.
        Returns:
        the file chosen by the user, or null
      • loadGpxData

        public static GpxData loadGpxData​(java.io.File file)
        Loads GpxData from the given file and returns it. Shows message dialog in case of error.
        Parameters:
        file - gpx data file, must not be null
        Returns:
        GpxData file, or null in case of error