Class TrailExporter

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter,, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, Serializable

    public class TrailExporter
    extends adams.gui.visualization.debug.objectexport.AbstractObjectExporter
    Exports Trail objects in the simple trail format.
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class adams.gui.visualization.debug.objectexport.AbstractObjectExporter

        m_ExporterClasses, m_Exporters
      • Fields inherited from class adams.core.option.AbstractOptionHandler

      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String doExport​(Object obj, File file)
      Performs the actual export.
      String getFormatDescription()
      Returns a string describing the format (used in the file chooser).
      String[] getFormatExtensions()
      Returns the extension(s) of the format.
      boolean handles​(Class cls)
      Checks whether the exporter can handle the specified class.
      • Methods inherited from class adams.gui.visualization.debug.objectexport.AbstractObjectExporter

        export, getDefaultFormatExtension, getExporters, getExporters, getExporters, getExporters, getExporters, globalInfo, initExporters, instantiate
      • Methods inherited from class adams.core.option.AbstractOptionHandler

        cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
      • Methods inherited from class adams.core.logging.LoggingObject

        configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

    • Constructor Detail

      • TrailExporter

        public TrailExporter()
    • Method Detail

      • getFormatDescription

        public String getFormatDescription()
        Returns a string describing the format (used in the file chooser).
        Specified by:
        getFormatDescription in interface
        Specified by:
        getFormatDescription in class adams.gui.visualization.debug.objectexport.AbstractObjectExporter
        a description suitable for displaying in the file chooser
      • getFormatExtensions

        public String[] getFormatExtensions()
        Returns the extension(s) of the format.
        Specified by:
        getFormatExtensions in interface
        Specified by:
        getFormatExtensions in class adams.gui.visualization.debug.objectexport.AbstractObjectExporter
        the extension (without the dot!)
      • handles

        public boolean handles​(Class cls)
        Checks whether the exporter can handle the specified class.
        Specified by:
        handles in class adams.gui.visualization.debug.objectexport.AbstractObjectExporter
        cls - the class to check
        true if the exporter can handle this type of object
      • doExport

        protected String doExport​(Object obj,
                                  File file)
        Performs the actual export.
        Specified by:
        doExport in class adams.gui.visualization.debug.objectexport.AbstractObjectExporter
        obj - the object to export
        file - the file to export to
        null if successful, otherwise error message