public class UndoManager
extends java.lang.Object
NetworkPanel
Modifier and Type | Class and Description |
---|---|
static interface |
UndoManager.UndoableAction
Interface for actions that can be undone and redone.
|
Constructor and Description |
---|
UndoManager() |
Modifier and Type | Method and Description |
---|---|
void |
addUndoableAction(UndoManager.UndoableAction action)
Add a new undoable action.
|
void |
redo()
Redo the last undone action.
|
void |
undo()
Undo the last undoable action.
|
public void addUndoableAction(UndoManager.UndoableAction action)
action
- the action to add.public void undo()
public void redo()