Class AbstractCurrentTrailFilter
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.plugin.AbstractToolPlugin<TrailPanel>
-
- adams.gui.visualization.trail.plugins.AbstractTrailViewerPlugin
-
- adams.gui.visualization.trail.plugins.AbstractCurrentTrailFilter
-
- All Implemented Interfaces:
adams.core.logging.LoggingSupporter
,adams.core.SizeOfHandler
,Serializable
- Direct Known Subclasses:
AbstractCurrentTrailFilterWithGOE
public abstract class AbstractCurrentTrailFilter extends AbstractTrailViewerPlugin
Ancestor for plugins that filter the current trail.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_FilterError
for storing filtering errors.
-
Constructor Summary
Constructors Constructor Description AbstractCurrentTrailFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canExecute(TrailPanel panel)
Checks whether the plugin can be executed given the specified trail panel.protected String
doExecute()
Executes the plugin.protected abstract Trail
filter(Trail trail)
Filters the trail.-
Methods inherited from class adams.gui.visualization.trail.plugins.AbstractTrailViewerPlugin
doLog
-
Methods inherited from class adams.gui.plugin.AbstractToolPlugin
createLogEntry, execute, getCanceledByUser, getCaption, getIcon, getIconName, getLastSetup, getMenu, hasLastSetup, log, setLastSetup
-
-
-
-
Field Detail
-
m_FilterError
protected String m_FilterError
for storing filtering errors.
-
-
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 classadams.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 classadams.gui.plugin.AbstractToolPlugin<TrailPanel>
- Returns:
- null if OK, otherwise error message
-
-