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 booleanisSelectionListener()Specifies if this tool wants to receive selectionChanged events.booleanisSessionListener()Specifies if this tool wants to receive sessionChanged events.voidsessionChanged(Session s)This method is called when the session changes.voidsessionDataChanged(Session s)Empty method.voidsetUndoSupport(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, unDisplayAsMarkedMethods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMovedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleasedMethods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMovedMethods 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:
 isSelectionListenerin interfaceTool- Overrides:
 isSelectionListenerin classAbstractTool- Returns:
 - DOCUMENT ME!
 
 - 
isSessionListener
public boolean isSessionListener()Specifies if this tool wants to receive sessionChanged events.- Specified by:
 isSessionListenerin interfaceTool- Overrides:
 isSessionListenerin classAbstractTool- Returns:
 - DOCUMENT ME!
 
 - 
setUndoSupport
Sets the undo support object this object uses.- Specified by:
 setUndoSupportin interfaceUndoable- Parameters:
 us- the undo support object this object uses.
 - 
sessionChanged
Description copied from interface:SessionListenerThis method is called when the session changes.- Specified by:
 sessionChangedin interfaceSessionListener- Overrides:
 sessionChangedin classAbstractTool- Parameters:
 s- the new Session.- See Also:
 SessionListener.sessionChanged(Session)
 - 
sessionDataChanged
Empty method.- Specified by:
 sessionDataChangedin interfaceSessionListener- See Also:
 SessionListener.sessionDataChanged(Session)
 
 -