Class AbstractSelectedImagesFilterWithGOE
- 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
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
- Direct Known Subclasses:
BoofCVTransformer
,BufferedImageTransformer
public abstract class AbstractSelectedImagesFilterWithGOE extends AbstractSelectedImagesFilter
Ancestor for image filters that process the selected images using a setup from aGenericObjectEditor
.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected GenericObjectEditor
m_Editor
the GOE editor with the transformer.-
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 AbstractSelectedImagesFilterWithGOE()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected JPanel
createConfigurationPanel(ApprovalDialog dialog)
Creates the panel with the configuration (return null to suppress display).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 Dimension
getDialogSize()
Returns the size of the dialog.protected abstract Class
getEditorType()
Returns the class to use as type (= superclass) in the GOE.protected boolean
hasApprovalButton()
Returns whether the dialog has an approval button.protected boolean
hasCancelButton()
Returns whether the dialog has a cancel button.protected String
processInit()
Initializes the processing.-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesFilter
canExecute, filter, 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
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
-
-
-
-
Field Detail
-
m_Editor
protected GenericObjectEditor m_Editor
the GOE editor with the transformer.
-
-
Method Detail
-
hasApprovalButton
protected boolean hasApprovalButton()
Returns whether the dialog has an approval button.- Overrides:
hasApprovalButton
in classAbstractSelectedImagesViewerPlugin
- Returns:
- true if approval button visible
-
hasCancelButton
protected boolean hasCancelButton()
Returns whether the dialog has a cancel button.- Overrides:
hasCancelButton
in classAbstractSelectedImagesViewerPlugin
- Returns:
- true if cancel button visible
-
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
-
getDialogSize
protected Dimension getDialogSize()
Returns the size of the dialog.- Overrides:
getDialogSize
in classAbstractSelectedImagesViewerPlugin
- Returns:
- the size
-
createConfigurationPanel
protected JPanel createConfigurationPanel(ApprovalDialog dialog)
Creates the panel with the configuration (return null to suppress display).- Specified by:
createConfigurationPanel
in classAbstractSelectedImagesViewerPlugin
- Parameters:
dialog
- the dialog that is being created- Returns:
- the generated panel, null to suppress
-
processInit
protected String processInit()
Initializes the processing.
Sets the last setup.- Overrides:
processInit
in classAbstractSelectedImagesViewerPlugin
- Returns:
- null if successful, otherwise error message
- See Also:
AbstractToolPlugin.setLastSetup(Object)
-
-