Graphic Rendering System 1.0
A Java-based graphic rendering system implementing various design patterns
|
Public Member Functions | |
CommandManager () | |
boolean | canRedo () |
boolean | canUndo () |
void | clearHistory () |
void | executeCommand (Command command) |
boolean | redo () |
boolean | undo () |
Private Attributes | |
final Stack< Command > | redoStack |
final Stack< Command > | undoStack |
Manager for executing, undoing, and redoing commands. This is part of the Command pattern implementation.
Definition at line 9 of file CommandManager.java.
|
inline |
Constructor initializes the command stacks
Definition at line 16 of file CommandManager.java.
|
inline |
Check if there are commands that can be redone
Definition at line 73 of file CommandManager.java.
References redoStack.
|
inline |
Check if there are commands that can be undone
Definition at line 65 of file CommandManager.java.
References undoStack.
|
inline |
Clear all command history
Definition at line 80 of file CommandManager.java.
|
inline |
Execute a command and add it to the undo stack
command | the command to execute |
Definition at line 25 of file CommandManager.java.
|
inline |
Redo the most recently undone command
Definition at line 50 of file CommandManager.java.
|
inline |
Undo the most recently executed command
Definition at line 35 of file CommandManager.java.
|
private |
Definition at line 11 of file CommandManager.java.
Referenced by CommandManager(), canRedo(), clearHistory(), executeCommand(), redo(), and undo().
|
private |
Definition at line 10 of file CommandManager.java.
Referenced by CommandManager(), canUndo(), clearHistory(), executeCommand(), redo(), and undo().