net.clackrouter.jgraph.pad
Class UndoHandler

java.lang.Object
  extended by net.clackrouter.jgraph.pad.UndoHandler
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.UndoableEditListener

public class UndoHandler
extends java.lang.Object
implements javax.swing.event.UndoableEditListener

Undo listener for one document. When a UndoableEditEvent is fired on a listened object undoableEditHappened will be called. The UndoableEditEvent will contain information about the latest edit and store this in the undo command history


Constructor Summary
UndoHandler(ClackDocument document)
           
 
Method Summary
 void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
          Messaged when the Document has created an edit, the edit is added to graphUndoManager, an instance of UndoManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndoHandler

public UndoHandler(ClackDocument document)
Method Detail

undoableEditHappened

public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
Messaged when the Document has created an edit, the edit is added to graphUndoManager, an instance of UndoManager.

Specified by:
undoableEditHappened in interface javax.swing.event.UndoableEditListener