Class AbstractCurrentTrailFilter

    • Field Summary

      Modifier and Type Field Description
      protected String m_FilterError
      for storing filtering errors.
      • Fields inherited from class adams.gui.plugin.AbstractToolPlugin

        m_CanceledByUser, m_CurrentPanel, m_LastSetup
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Field Detail

      • m_FilterError

        protected String m_FilterError
        for storing filtering errors.
    • Constructor Detail

      • AbstractCurrentTrailFilter

        public AbstractCurrentTrailFilter()
    • Method Detail

      • canExecute

        public boolean canExecute​(TrailPanel panel)
        Checks whether the plugin can be executed given the specified trail panel.

        Panel must be non-null and must contain an trail.
        Specified by:
        canExecute in class adams.gui.plugin.AbstractToolPlugin<TrailPanel>
        panel - the panel to use as basis for decision
        true if plugin can be executed
      • filter

        protected abstract Trail filter​(Trail trail)
        Filters the trail.
        trail - the trail to filter
        the processed trail
      • doExecute

        protected String doExecute()
        Executes the plugin.
        Specified by:
        doExecute in class adams.gui.plugin.AbstractToolPlugin<TrailPanel>
        null if OK, otherwise error message