public class GraphUndoManager
extends javax.swing.undo.UndoManager
Constructor and Description |
---|
GraphUndoManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRedo(java.lang.Object source)
Overridden to preserve usual semantics: returns true if a redo
operation would be successful now for the given view, false otherwise
|
boolean |
canUndo(java.lang.Object source)
Overridden to preserve usual semantics: returns true if an undo
operation would be successful now for the given view, false otherwise
|
protected javax.swing.undo.UndoableEdit |
editToBeRedone(java.lang.Object source) |
protected javax.swing.undo.UndoableEdit |
editToBeUndone(java.lang.Object source) |
protected javax.swing.undo.UndoableEdit |
nextEditToBeRedone(javax.swing.undo.UndoableEdit current)
Returns the the next significant edit wrt to current
to be redone if redo is called.
|
protected javax.swing.undo.UndoableEdit |
nextEditToBeUndone(javax.swing.undo.UndoableEdit current)
Returns the the next significant edit wrt to current
to be undone if undo is called.
|
void |
redo(java.lang.Object source)
If this
UndoManager is inProgress ,
redoes the last significant UndoableEdit with
respect to source or after, and all insignificant
edits up to it. |
void |
undo(java.lang.Object source)
If this UndoManager is inProgress, undo the last significant
UndoableEdit wrt to source, and all insignificant edits back to
it.
|
addEdit, canRedo, canUndo, canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redo, redoTo, setLimit, toString, trimEdits, trimForLimit, undo, undoableEditHappened, undoOrRedo, undoTo
public boolean canUndo(java.lang.Object source)
public boolean canRedo(java.lang.Object source)
public void undo(java.lang.Object source)
If not inProgress, indexOfNextAdd is ignored and super's routine is called.
UndoManager.undo()
protected javax.swing.undo.UndoableEdit editToBeUndone(java.lang.Object source)
protected javax.swing.undo.UndoableEdit nextEditToBeUndone(javax.swing.undo.UndoableEdit current)
public void redo(java.lang.Object source)
UndoManager
is inProgress
,
redoes the last significant UndoableEdit
with
respect to source or after, and all insignificant
edits up to it. Updates indexOfNextAdd
accordingly.
If not inProgress
, indexOfNextAdd
is ignored and super's routine is called.
protected javax.swing.undo.UndoableEdit editToBeRedone(java.lang.Object source)
protected javax.swing.undo.UndoableEdit nextEditToBeRedone(javax.swing.undo.UndoableEdit current)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.