Class AbstractSelectionProcessor
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.heatmap.selection.AbstractSelectionProcessor
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.ShallowCopySupporter<AbstractSelectionProcessor>
,adams.core.SizeOfHandler
,HeatmapPanelSelectionListener
,Serializable
,EventListener
- Direct Known Subclasses:
Crop
,NullProcessor
public abstract class AbstractSelectionProcessor extends adams.core.option.AbstractOptionHandler implements HeatmapPanelSelectionListener, adams.core.ShallowCopySupporter<AbstractSelectionProcessor>
Ancestor for classes that react to selection in an heatmap.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractSelectionProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
check(HeatmapPanelSelectionEvent e)
Performs a check on the event.protected void
doHeatmapChanged(HeatmapPanel panel)
Notifies the overlay that the heatmap has changed.protected abstract void
doProcessSelection(HeatmapPanel panel, Point topLeft, Point bottomRight, int modifiersEx)
Process the selection that occurred in the heatmap panel.void
heatmapChanged(HeatmapPanel panel)
Notifies the overlay that the heatmap has changed.void
processSelection(HeatmapPanel panel, Point topLeft, Point bottomRight, int modifiersEx)
Process the selection that occurred in the heatmap panel.void
selected(HeatmapPanelSelectionEvent e)
Invoked when a selection happened in aHeatmapPanel
.AbstractSelectionProcessor
shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options.AbstractSelectionProcessor
shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
doHeatmapChanged
protected void doHeatmapChanged(HeatmapPanel panel)
Notifies the overlay that the heatmap has changed.- Parameters:
panel
- the panel this overlay belongs to
-
heatmapChanged
public void heatmapChanged(HeatmapPanel panel)
Notifies the overlay that the heatmap has changed.- Specified by:
heatmapChanged
in interfaceHeatmapPanelSelectionListener
- Parameters:
panel
- the panel this overlay belongs to
-
doProcessSelection
protected abstract void doProcessSelection(HeatmapPanel panel, Point topLeft, Point bottomRight, int modifiersEx)
Process the selection that occurred in the heatmap panel.- Parameters:
panel
- the origintopLeft
- the top-left position of the selectionbottomRight
- the bottom-right position of the selectionmodifiersEx
- the associated modifiers
-
processSelection
public void processSelection(HeatmapPanel panel, Point topLeft, Point bottomRight, int modifiersEx)
Process the selection that occurred in the heatmap panel.- Parameters:
panel
- the origintopLeft
- the top-left position of the selectionbottomRight
- the bottom-right position of the selectionmodifiersEx
- the associated modifiers
-
check
protected String check(HeatmapPanelSelectionEvent e)
Performs a check on the event.- Parameters:
e
- the event to check- Returns:
- null if OK, otherwise error message
-
selected
public void selected(HeatmapPanelSelectionEvent e)
Invoked when a selection happened in aHeatmapPanel
.- Specified by:
selected
in interfaceHeatmapPanelSelectionListener
- Parameters:
e
- the event
-
shallowCopy
public AbstractSelectionProcessor shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options.- Specified by:
shallowCopy
in interfaceadams.core.ShallowCopySupporter<AbstractSelectionProcessor>
- Returns:
- the shallow copy
-
shallowCopy
public AbstractSelectionProcessor shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options.- Specified by:
shallowCopy
in interfaceadams.core.ShallowCopySupporter<AbstractSelectionProcessor>
- Parameters:
expand
- whether to expand variables to their current values- Returns:
- the shallow copy
-
-