|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.CommandHistory
public class CommandHistory
Represent the command undo/redo history.
Constructor Summary | |
---|---|
CommandHistory()
Initializes a new CommandHistory instance. |
Method Summary | |
---|---|
void |
clear()
Clears the undo/redo history. |
int |
getCapacity()
Gets how much commands can be saved in the undo history. |
Command |
getNextRedo()
Gets the command that will be redone by the next call to UndoManager.redo() . |
Command |
getNextUndo()
Gets the command that will be undone by the next call to UndoManager.undo() . |
boolean |
mergeUndoRecords(int numRecords,
java.lang.String title)
Merges several undo records into a single composite record. |
void |
setCapacity(int value)
Sets the maximum number of commands that can be saved in the undo history. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandHistory()
CommandHistory
instance.
Method Detail |
---|
public boolean mergeUndoRecords(int numRecords, java.lang.String title)
numRecords
- Specifies how many records at the end of the command list should be merged.title
- Specifies the title of the new command.
public void clear()
public Command getNextUndo()
UndoManager.undo()
.
public Command getNextRedo()
UndoManager.redo()
.
public int getCapacity()
public void setCapacity(int value)
value
- An integer value specifying how much commands can be saved in
the undo/redo history before dropping the oldest command.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |