Class BoofCVDetectLineSegments
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.plugin.AbstractToolPlugin<ImagePanel>
-
- adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
-
- adams.gui.visualization.image.plugins.AbstractImageViewerPluginWithGOE
-
- adams.gui.visualization.image.plugins.BoofCVDetectLineSegments
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
public class BoofCVDetectLineSegments extends AbstractImageViewerPluginWithGOE
Allows the user to change the brightness of an image.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BoofCVDetectLineSegmentsImageOverlay
m_Overlay
the overlay in use.-
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 BoofCVDetectLineSegments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canExecute(ImagePanel panel)
Checks whether the plugin can be executed given the specified image panel.protected String
createLogEntry()
Creates the log message.protected boolean
getCanChangeClassInDialog()
Returns whether the class can be changed in the GOE.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()
Processes the image.-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractImageViewerPluginWithGOE
doExecute, getDialogSize
-
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
-
-
-
-
Field Detail
-
m_Overlay
protected BoofCVDetectLineSegmentsImageOverlay m_Overlay
the overlay in use.
-
-
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
-
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
-
canExecute
public boolean canExecute(ImagePanel panel)
Checks whether the plugin can be executed given the specified image panel.- Specified by:
canExecute
in classAbstractToolPlugin<ImagePanel>
- Parameters:
panel
- the panel to use as basis for decision- Returns:
- true if plugin can be executed
-
getCanChangeClassInDialog
protected boolean getCanChangeClassInDialog()
Returns whether the class can be changed in the GOE.- Overrides:
getCanChangeClassInDialog
in classAbstractImageViewerPluginWithGOE
- Returns:
- true if class can be changed by the user
-
getEditorType
protected Class getEditorType()
Returns the class to use as type (= superclass) in the GOE.- Specified by:
getEditorType
in classAbstractImageViewerPluginWithGOE
- 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 classAbstractImageViewerPluginWithGOE
- Returns:
- the object
-
createLogEntry
protected String createLogEntry()
Creates the log message.- Specified by:
createLogEntry
in classAbstractToolPlugin<ImagePanel>
- Returns:
- the message, null if none available
-
process
protected String process()
Processes the image.- Specified by:
process
in classAbstractImageViewerPluginWithGOE
-
-