Class Clear
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.gui.visualization.segmentation.tool.AbstractTool
-
- adams.gui.visualization.segmentation.tool.Clear
-
- All Implemented Interfaces:
CleanUpHandler,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,SizeOfHandler,Tool,Serializable
public class Clear extends AbstractTool
Clears the annotations of the active label.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.visualization.segmentation.tool.AbstractTool
m_KeyListener, m_Listener, m_MotionListener, m_PaintOperation, m_PanelCanvas, m_PanelFullOptions, m_PanelOptions
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description Clear()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclear()Clears the annotations.protected CursorcreateCursor()Returns the mouse cursor to use.protected ToolMouseAdaptercreateMouseListener()Creates the mouse listener to use.protected ToolMouseMotionAdaptercreateMouseMotionListener()Creates the mouse motion listener to use.protected BasePanelcreateOptionPanel()Creates the panel for setting the options.protected voiddoApply()Applies the settings.IcongetIcon()The icon of the tool.protected StringgetModifiedIcon()Returns the icon name for the modified state.StringgetName()The name of the tool.protected StringgetUnmodifiedIcon()Returns the icon name for the unmodified state.StringglobalInfo()Returns a string describing the object.-
Methods inherited from class adams.gui.visualization.segmentation.tool.AbstractTool
activate, annotationsChanged, apply, checkBeforeApply, cleanUp, createApplyButton, createKeyListener, createPaintOperation, deactivate, getActiveColor, getActiveCombinedSubLayer, getActiveImage, getActiveOverlay, getCanvas, getCursor, getKeyListener, getLayerManager, getMouseListener, getMouseMotionListener, getOptionPanel, getPaintOperation, getZoom, hasActiveCombinedSubLayer, hasActiveOverlay, hasAnyActive, initialize, isAutomaticUndoEnabled, setApplyButtonState, setCanvas
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel, setLoggingLevel
-
Methods inherited from interface adams.core.logging.LoggingSupporter
getLogger, isLoggingEnabled
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Returns:
- a description suitable for displaying in the gui
-
getName
public String getName()
The name of the tool.- Returns:
- the name
-
getIcon
public Icon getIcon()
The icon of the tool.- Returns:
- the icon
-
createCursor
protected Cursor createCursor()
Returns the mouse cursor to use.- Specified by:
createCursorin classAbstractTool- Returns:
- the cursor
-
createMouseListener
protected ToolMouseAdapter createMouseListener()
Creates the mouse listener to use.- Specified by:
createMouseListenerin classAbstractTool- Returns:
- the listener, null if not applicable
-
createMouseMotionListener
protected ToolMouseMotionAdapter createMouseMotionListener()
Creates the mouse motion listener to use.- Specified by:
createMouseMotionListenerin classAbstractTool- Returns:
- the listener, null if not applicable
-
getUnmodifiedIcon
protected String getUnmodifiedIcon()
Returns the icon name for the unmodified state.- Overrides:
getUnmodifiedIconin classAbstractTool- Returns:
- the image name
-
getModifiedIcon
protected String getModifiedIcon()
Returns the icon name for the modified state.- Overrides:
getModifiedIconin classAbstractTool- Returns:
- the image name
-
createOptionPanel
protected BasePanel createOptionPanel()
Creates the panel for setting the options.- Specified by:
createOptionPanelin classAbstractTool- Returns:
- the options panel
-
clear
protected void clear()
Clears the annotations.
-
doApply
protected void doApply()
Applies the settings.- Specified by:
doApplyin classAbstractTool
-
-