Package adams.data.filter.heatmapcrop
Class AbstractFilteredHeatmapCrop
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.filter.heatmapcrop.AbstractHeatmapCrop
-
- adams.data.filter.heatmapcrop.AbstractFilteredHeatmapCrop
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.SizeOfHandler,Serializable
- Direct Known Subclasses:
CropToCentroid
public abstract class AbstractFilteredHeatmapCrop extends AbstractHeatmapCrop
Ancestor for crop algorithms that filter the original heatmap first before performing the actual crop.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.data.filter.Filterm_Filterthe filter to apply to the data first.-
Fields inherited from class adams.data.filter.heatmapcrop.AbstractHeatmapCrop
CROP_BOTTOM, CROP_LEFT, CROP_RIGHT, CROP_TOP, m_BottomRight, m_TopLeft
-
-
Constructor Summary
Constructors Constructor Description AbstractFilteredHeatmapCrop()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected HeatmapdoCrop(Heatmap data)Performs the actual filtering.protected abstract HeatmapdoCrop(Heatmap filtered, Heatmap original)Performs the actual cropping, using the pre-filtered heatmap to manipulate the original heatmap.StringfilterTipText()Returns the tip text for this property.protected adams.data.filter.FiltergetDefaultFilter()Returns the default pre-filter to use.adams.data.filter.FiltergetFilter()Returns the current pre-filter.voidsetFilter(adams.data.filter.Filter value)Sets the pre-filter.-
Methods inherited from class adams.data.filter.heatmapcrop.AbstractHeatmapCrop
check, crop, postCrop, preCrop
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, 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
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.core.option.AbstractOptionHandler
-
getDefaultFilter
protected adams.data.filter.Filter getDefaultFilter()
Returns the default pre-filter to use.- Returns:
- the default
-
setFilter
public void setFilter(adams.data.filter.Filter value)
Sets the pre-filter.- Parameters:
value- the filter
-
getFilter
public adams.data.filter.Filter getFilter()
Returns the current pre-filter.- Returns:
- the filter
-
filterTipText
public String filterTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doCrop
protected abstract Heatmap doCrop(Heatmap filtered, Heatmap original)
Performs the actual cropping, using the pre-filtered heatmap to manipulate the original heatmap.- Parameters:
filtered- the pre-filtered heatmaporiginal- the original heatmap- Returns:
- the final data
-
doCrop
protected Heatmap doCrop(Heatmap data)
Performs the actual filtering.- Specified by:
doCropin classAbstractHeatmapCrop- Parameters:
data- the data to filter- Returns:
- the filtered data
-
-