Package org.graffiti.plugin.tool
Class AbstractUndoableTool
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
org.graffiti.plugin.tool.AbstractTool
org.graffiti.plugin.tool.AbstractUndoableTool
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
,MouseInputListener
,Tool
,SelectionListener
,SessionListener
,Undoable
- Direct Known Subclasses:
MegaTools
public abstract class AbstractUndoableTool extends AbstractTool implements Undoable
Superclass for all tools that provide undo information for their actions.
- Version:
- $Revision: 1.6 $
-
Constructor Summary
Constructors Constructor Description AbstractUndoableTool()
-
Method Summary
Modifier and Type Method Description boolean
isSelectionListener()
Specifies if this tool wants to receive selectionChanged events.boolean
isSessionListener()
Specifies if this tool wants to receive sessionChanged events.void
sessionChanged(Session s)
This method is called when the session changes.void
sessionDataChanged(Session s)
Empty method.void
setUndoSupport(UndoableEditSupport us)
Sets the undo support object this object uses.Methods inherited from class org.graffiti.plugin.tool.AbstractTool
activate, activateTool, deactivate, deactivateAll, displayAsMarked, displayAsMarked, displayAsMarked, displayAsMarked, getActiveTool, highlight, isActive, isViewListener, selectionChanged, selectionListChanged, setGraph, setPrefs, unDisplayAsMarked, unDisplayAsMarked
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
Methods inherited from interface org.graffiti.plugin.tool.Tool
getToolName, postProcessImageCreation, preProcessImageCreation
-
Constructor Details
-
AbstractUndoableTool
public AbstractUndoableTool()
-
-
Method Details
-
isSelectionListener
public boolean isSelectionListener()Specifies if this tool wants to receive selectionChanged events.- Specified by:
isSelectionListener
in interfaceTool
- Overrides:
isSelectionListener
in classAbstractTool
- Returns:
- DOCUMENT ME!
-
isSessionListener
public boolean isSessionListener()Specifies if this tool wants to receive sessionChanged events.- Specified by:
isSessionListener
in interfaceTool
- Overrides:
isSessionListener
in classAbstractTool
- Returns:
- DOCUMENT ME!
-
setUndoSupport
Sets the undo support object this object uses.- Specified by:
setUndoSupport
in interfaceUndoable
- Parameters:
us
- the undo support object this object uses.
-
sessionChanged
Description copied from interface:SessionListener
This method is called when the session changes.- Specified by:
sessionChanged
in interfaceSessionListener
- Overrides:
sessionChanged
in classAbstractTool
- Parameters:
s
- the new Session.- See Also:
SessionListener.sessionChanged(Session)
-
sessionDataChanged
Empty method.- Specified by:
sessionDataChanged
in interfaceSessionListener
- See Also:
SessionListener.sessionDataChanged(Session)
-