Class LocateObjects
- 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.AbstractSelectedImagesViewerPluginWithGOE
-
- adams.gui.visualization.image.plugins.LocateObjects
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
public class LocateObjects extends AbstractSelectedImagesViewerPluginWithGOE
Allows the user to locate objects in the image(s).- 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.AbstractSelectedImagesViewerPluginWithGOE
m_Editor
-
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 LocateObjects()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
createLogEntry()
Creates the log message.String
getCaption()
Returns the text for the menu item to create.protected Object
getDefaultValue()
Returns the default object to use in the GOE if no last setup is yet available.protected Class
getEditorType()
Returns the class to use as type (= superclass) in the GOE.String
getIconName()
Returns the icon name.String
getMenu()
Returns the text for the menu to place the plugin beneath.protected String
process(ImagePanel panel)
Processes the specified panel.-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPluginWithGOE
createConfigurationPanel, getCanChangeClassInDialog, getDialogSize, hasApprovalButton, hasCancelButton
-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPlugin
canExecute, createDialog, createListPanel, doExecute, getAllPanels, process, processFinish, processInit
-
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:
getMenu
in classAbstractToolPlugin<ImagePanel>
- Returns:
- the menu
-
getEditorType
protected Class getEditorType()
Returns the class to use as type (= superclass) in the GOE.- Specified by:
getEditorType
in classAbstractSelectedImagesViewerPluginWithGOE
- 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:
getDefaultValue
in classAbstractSelectedImagesViewerPluginWithGOE
- Returns:
- the object
-
process
protected String process(ImagePanel panel)
Processes the specified panel.- Specified by:
process
in classAbstractSelectedImagesViewerPlugin
- Parameters:
panel
- the panel to process- Returns:
- null if successful, error message otherwise
-
getCaption
public String getCaption()
Returns the text for the menu item to create.- Specified by:
getCaption
in classAbstractToolPlugin<ImagePanel>
- Returns:
- the text
-
getIconName
public String getIconName()
Returns the icon name.- Overrides:
getIconName
in classAbstractToolPlugin<ImagePanel>
- Returns:
- the name, null if none available
-
createLogEntry
protected String createLogEntry()
Creates the log message.- Specified by:
createLogEntry
in classAbstractToolPlugin<ImagePanel>
- Returns:
- the message, null if none available
-
-