Class AbstractSelectedHeatmapsFilter
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.plugin.AbstractToolPlugin<HeatmapPanel>
-
- adams.gui.visualization.heatmap.plugins.AbstractHeatmapViewerPlugin
-
- adams.gui.visualization.heatmap.plugins.AbstractSelectedHeatmapsViewerPlugin
-
- adams.gui.visualization.heatmap.plugins.AbstractSelectedHeatmapsFilter
-
- All Implemented Interfaces:
adams.core.logging.LoggingSupporter
,adams.core.SizeOfHandler
,Serializable
- Direct Known Subclasses:
AbstractSelectedHeatmapsFilterWithGOE
public abstract class AbstractSelectedHeatmapsFilter extends AbstractSelectedHeatmapsViewerPlugin
Ancestor for plugins that filter the selected heatmaps.- Version:
- $Revision: 7171 $
- 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.-
Fields inherited from class adams.gui.visualization.heatmap.plugins.AbstractSelectedHeatmapsViewerPlugin
m_SelectedPanels
-
-
Constructor Summary
Constructors Constructor Description AbstractSelectedHeatmapsFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canExecute(HeatmapPanel panel)
Checks whether the plugin can be executed given the specified heatmap panel.protected abstract Heatmap
filter(Heatmap heatmap)
Filters the heatmap.protected String
process(HeatmapPanel panel)
Processes the panel.-
Methods inherited from class adams.gui.visualization.heatmap.plugins.AbstractSelectedHeatmapsViewerPlugin
createConfigurationPanel, createDialog, createListPanel, doExecute, getAllPanels, getDialogSize, hasApprovalButton, hasCancelButton, process, processFinish, processInit
-
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.- Overrides:
canExecute
in classAbstractSelectedHeatmapsViewerPlugin
- 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
-
process
protected String process(HeatmapPanel panel)
Processes the panel.- Specified by:
process
in classAbstractSelectedHeatmapsViewerPlugin
- Parameters:
panel
- the panel to process- Returns:
- null if OK, otherwise error message
-
-