Class BufferedImageTransformer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.plugin.AbstractToolPlugin<ImagePanel>
-
- adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
-
- adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPlugin
-
- adams.gui.visualization.image.plugins.AbstractSelectedImagesFilter
-
- adams.gui.visualization.image.plugins.AbstractSelectedImagesFilterWithGOE
-
- adams.gui.visualization.image.plugins.BufferedImageTransformer
-
- All Implemented Interfaces:
LoggingSupporter,SizeOfHandler,Serializable
public class BufferedImageTransformer extends AbstractSelectedImagesFilterWithGOE
Allows the user to apply a BufferedImage transformer to the selected images in the ImageViewer.- 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.AbstractSelectedImagesFilterWithGOE
m_Editor
-
Fields inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesFilter
m_FilterError
-
Fields inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPlugin
m_SelectedPanels
-
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 BufferedImageTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcreateLogEntry()Creates the log message.protected BufferedImagefilter(BufferedImage image)Filters the image.StringgetCaption()Returns the text for the menu item to create.protected ObjectgetDefaultValue()Returns the default object to use in the GOE if no last setup is yet available.protected ClassgetEditorType()Returns the class to use as type (= superclass) in the GOE.StringgetIconName()Returns the icon name.StringgetMenu()Returns the text for the menu to place the plugin beneath.-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesFilterWithGOE
createConfigurationPanel, getCanChangeClassInDialog, getDialogSize, hasApprovalButton, hasCancelButton, processInit
-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesFilter
canExecute, process
-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPlugin
createDialog, createListPanel, doExecute, getAllPanels, process, processFinish
-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
doLog
-
Methods inherited from class adams.gui.plugin.AbstractToolPlugin
execute, getCanceledByUser, getIcon, getLastSetup, hasLastSetup, log, setLastSetup
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
getMenu
public String getMenu()
Returns the text for the menu to place the plugin beneath.- Overrides:
getMenuin classAbstractToolPlugin<ImagePanel>- Returns:
- the menu
-
getCaption
public String getCaption()
Returns the text for the menu item to create.- Specified by:
getCaptionin classAbstractToolPlugin<ImagePanel>- Returns:
- the text
-
getIconName
public String getIconName()
Returns the icon name.- Overrides:
getIconNamein classAbstractToolPlugin<ImagePanel>- Returns:
- the name, null if none available
-
getEditorType
protected Class getEditorType()
Returns the class to use as type (= superclass) in the GOE.- Specified by:
getEditorTypein classAbstractSelectedImagesFilterWithGOE- Returns:
- the class
-
getDefaultValue
protected Object getDefaultValue()
Returns the default object to use in the GOE if no last setup is yet available.- Specified by:
getDefaultValuein classAbstractSelectedImagesFilterWithGOE- Returns:
- the object
-
createLogEntry
protected String createLogEntry()
Creates the log message.- Specified by:
createLogEntryin classAbstractToolPlugin<ImagePanel>- Returns:
- the message, null if none available
-
filter
protected BufferedImage filter(BufferedImage image)
Filters the image.- Specified by:
filterin classAbstractSelectedImagesFilter- Parameters:
image- the image to filter- Returns:
- the processed image
-
-