Class AbstractCurrentTrailFilter

    • Field Summary

      Fields 
      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>
        Parameters:
        panel - the panel to use as basis for decision
        Returns:
        true if plugin can be executed
      • filter

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

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