public interface UndoRedoStack extends WeakReferencingObservable
Modifier and Type | Method and Description |
---|---|
boolean |
canRedo()
If a redo can be performed on the stack.
|
boolean |
canUndo()
If an undo can be performed on the stack.
|
java.util.List |
getRedoInfos()
Returns the list of UndoRedoInfo in the REDO stack
|
java.util.List |
getUndoInfos()
Returns the list of UndoRedoInfo in the UNDO stack
|
void |
redo()
Re-does the following redoable elements.
|
void |
redo(int num)
Re-does a number of the following redoable element.
|
void |
undo()
Undoes the following undoable elements.
|
void |
undo(int num)
Undoes a number of the following undoable elements.
|
addObserver, deleteObserver, deleteObservers
void undo() throws UndoException
UndoException
- if there is an error performing de undo elementvoid undo(int num) throws UndoException
num
- the number of elements to undoUndoException
- if there is an error performing de undo elementvoid redo() throws RedoException
RedoException
- if there is an error performing de redo elementvoid redo(int num) throws RedoException
num
- the number of elements to redoRedoException
- if there is an error performing de redo elementjava.util.List getUndoInfos()
java.util.List getRedoInfos()
boolean canUndo()
boolean canRedo()