Class AbstractCurrentImageFilterWithGOE
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.plugin.AbstractToolPlugin<ImagePanel>
-
- adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
-
- adams.gui.visualization.image.plugins.AbstractCurrentImageFilter
-
- adams.gui.visualization.image.plugins.AbstractCurrentImageFilterWithGOE
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
public abstract class AbstractCurrentImageFilterWithGOE extends AbstractCurrentImageFilter
Ancestor for image filters that process the current image with a setup obtained from aGenericObjectEditorDialog
.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.visualization.image.plugins.AbstractCurrentImageFilter
m_FilterError
-
Fields inherited from class adams.gui.plugin.AbstractToolPlugin
m_CanceledByUser, m_CurrentPanel, m_LastSetup
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractCurrentImageFilterWithGOE()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract BufferedImage
doFilter(BufferedImage image)
Performs the actual filtering of the image.protected BufferedImage
filter(BufferedImage image)
Filters the image.protected boolean
getCanChangeClassInDialog()
Returns whether the class can be changed in the GOE.protected abstract Object
getDefaultValue()
Returns the default object to use in the GOE if no last setup is yet available.protected abstract Class
getEditorType()
Returns the class to use as type (= superclass) in the GOE.-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractCurrentImageFilter
canExecute, doExecute
-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
doLog
-
Methods inherited from class adams.gui.plugin.AbstractToolPlugin
createLogEntry, execute, getCanceledByUser, getCaption, getIcon, getIconName, getLastSetup, getMenu, hasLastSetup, log, setLastSetup
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
getEditorType
protected abstract Class getEditorType()
Returns the class to use as type (= superclass) in the GOE.- Returns:
- the class
-
getDefaultValue
protected abstract Object getDefaultValue()
Returns the default object to use in the GOE if no last setup is yet available.- Returns:
- the object
-
getCanChangeClassInDialog
protected boolean getCanChangeClassInDialog()
Returns whether the class can be changed in the GOE.- Returns:
- true if class can be changed by the user
-
doFilter
protected abstract BufferedImage doFilter(BufferedImage image)
Performs the actual filtering of the image.- Parameters:
image
- the image to filter- Returns:
- the processed image
-
filter
protected BufferedImage filter(BufferedImage image)
Filters the image.- Specified by:
filter
in classAbstractCurrentImageFilter
- Parameters:
image
- the image to filter- Returns:
- the processed image
-
-