Class AbstractCurrentHeatmapFilter
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.plugin.AbstractToolPlugin<HeatmapPanel>
-
- adams.gui.visualization.heatmap.plugins.AbstractHeatmapViewerPlugin
-
- adams.gui.visualization.heatmap.plugins.AbstractCurrentHeatmapFilter
-
- All Implemented Interfaces:
adams.core.logging.LoggingSupporter,adams.core.SizeOfHandler,Serializable
- Direct Known Subclasses:
AbstractCurrentHeatmapFilterWithGOE
public abstract class AbstractCurrentHeatmapFilter extends AbstractHeatmapViewerPlugin
Ancestor for plugins that filter the current heatmap.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_FilterErrorfor storing filtering errors.
-
Constructor Summary
Constructors Constructor Description AbstractCurrentHeatmapFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancanExecute(HeatmapPanel panel)Checks whether the plugin can be executed given the specified heatmap panel.protected StringdoExecute()Executes the plugin.protected abstract Heatmapfilter(Heatmap heatmap)Filters the heatmap.-
Methods inherited from class adams.gui.visualization.heatmap.plugins.AbstractHeatmapViewerPlugin
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(HeatmapPanel panel)
Checks whether the plugin can be executed given the specified heatmap panel.
Panel must be non-null and must contain an heatmap.- Specified by:
canExecutein classadams.gui.plugin.AbstractToolPlugin<HeatmapPanel>- Parameters:
panel- the panel to use as basis for decision- Returns:
- true if plugin can be executed
-
filter
protected abstract Heatmap filter(Heatmap heatmap)
Filters the heatmap.- Parameters:
heatmap- the heatmap to filter- Returns:
- the processed heatmap
-
doExecute
protected String doExecute()
Executes the plugin.- Specified by:
doExecutein classadams.gui.plugin.AbstractToolPlugin<HeatmapPanel>- Returns:
- null if OK, otherwise error message
-
-