Class Crop
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.heatmap.selection.AbstractSelectionProcessor
-
- adams.gui.visualization.heatmap.selection.Crop
-
- 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
public class Crop extends AbstractSelectionProcessor
Crops the heatmap to the current selection and stores crop information in the report (prefix: Crop.). Offers undo/redo.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Crop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doProcessSelection(HeatmapPanel panel, Point topLeft, Point bottomRight, int modifiersEx)
Process the selection that occurred in the heatmap panel.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.gui.visualization.heatmap.selection.AbstractSelectionProcessor
check, doHeatmapChanged, heatmapChanged, processSelection, selected, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
the prefix for the crop coordinates.- See Also:
- Constant Field Values
-
KEY_X
public static final String KEY_X
the x key.- See Also:
- Constant Field Values
-
KEY_Y
public static final String KEY_Y
the y key.- See Also:
- Constant Field Values
-
KEY_WIDTH
public static final String KEY_WIDTH
the width key.- See Also:
- Constant Field Values
-
KEY_HEIGHT
public static final String KEY_HEIGHT
the height key.- See Also:
- Constant Field Values
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
doProcessSelection
protected void doProcessSelection(HeatmapPanel panel, Point topLeft, Point bottomRight, int modifiersEx)
Process the selection that occurred in the heatmap panel.- Specified by:
doProcessSelection
in classAbstractSelectionProcessor
- Parameters:
panel
- the origintopLeft
- the top-left position of the selectionbottomRight
- the bottom-right position of the selectionmodifiersEx
- the associated modifiers
-
-