public class StateQueue
extends java.lang.Object
Constructor and Description |
---|
StateQueue(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addState(CoolMapState state) |
void |
destroy() |
java.lang.String |
getCurrentRedoOperationName() |
CoolMapState |
getCurrentState() |
java.lang.String |
getCurrentUndoOperationName() |
boolean |
hasRedo() |
boolean |
hasUndo() |
boolean |
isCurStateSaved() |
void |
newOperationPerformed() |
CoolMapState |
redo() |
CoolMapState |
undo() |
public void addState(CoolMapState state)
public void destroy()
public java.lang.String getCurrentUndoOperationName()
public java.lang.String getCurrentRedoOperationName()
public boolean hasUndo()
public boolean hasRedo()
public CoolMapState getCurrentState()
public boolean isCurStateSaved()
public CoolMapState undo()
public CoolMapState redo()
public void newOperationPerformed()