Class MarkLocation
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.plugin.AbstractToolPlugin<ImagePanel>
-
- adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
-
- adams.gui.visualization.image.plugins.MarkLocation
-
- All Implemented Interfaces:
LoggingSupporter,SizeOfHandler,Serializable
public class MarkLocation extends AbstractImageViewerPlugin
Highlights the locations entered by the user in the current image.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
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 MarkLocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExecute(ImagePanel panel)Checks whether the plugin can be executed given the specified panel.protected StringcreateLogEntry()Creates the log message.protected StringdoExecute()Executes the plugin.StringgetCaption()Returns the text for the menu item to create.StringgetIconName()Returns the icon name.StringgetMenu()Returns the text for the menu to place the plugin beneath.protected voidshowHighlights(Properties props)Displays the highlight specified in the properties.-
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
-
canExecute
public boolean canExecute(ImagePanel panel)
Checks whether the plugin can be executed given the specified panel.- Specified by:
canExecutein classAbstractToolPlugin<ImagePanel>- Parameters:
panel- the panel to use as basis for decision- Returns:
- true if plugin can be executed
-
createLogEntry
protected String createLogEntry()
Creates the log message.- Specified by:
createLogEntryin classAbstractToolPlugin<ImagePanel>- Returns:
- the message, null if none available
-
showHighlights
protected void showHighlights(Properties props)
Displays the highlight specified in the properties.- Parameters:
props- the overlay setup and locations
-
doExecute
protected String doExecute()
Executes the plugin.- Specified by:
doExecutein classAbstractToolPlugin<ImagePanel>- Returns:
- null if OK, otherwise error message. Using an empty string will suppress the error message display and the creation of a log entry.
-
-