public class GrossHistory
extends java.lang.Object
Constructor and Description |
---|
GrossHistory(PuzzleInstance pi) |
Modifier and Type | Method and Description |
---|---|
boolean |
addEvent(Event<?> event) |
boolean |
canRedo() |
boolean |
canUndo() |
void |
clearAnnotations() |
void |
clearHistory() |
Event<?> |
getCurrentRedoableEvent() |
Event<?> |
getCurrentUndoableEvent() |
Event<?> |
getLastAddedEvent() |
Event<?> |
getNextEvent() |
int |
getNextEventIndex() |
Event<?> |
getTopOfUndoStack() |
java.lang.String |
historyToString()
This method returns the gross history in a string representation rather than as a grouping of data
|
boolean |
isSaved() |
boolean |
iteratorAtBeginning() |
boolean |
iteratorAtEnd() |
Event<?> |
next()
Used to iterate over the history to make annotations.
|
Event<?> |
previous()
Used to iterate over the history to make annotations.
|
void |
printStacks() |
void |
setSaved(boolean saved) |
int |
size() |
boolean |
takebackAndDeleteLastEvent() |
void |
toBeginning() |
void |
toEnd() |
public GrossHistory(PuzzleInstance pi)
public void clearHistory()
public void clearAnnotations()
public boolean addEvent(Event<?> event)
public void printStacks()
public boolean canRedo()
public boolean canUndo()
public Event<?> getCurrentUndoableEvent()
public Event<?> getCurrentRedoableEvent()
public Event<?> getTopOfUndoStack()
public boolean takebackAndDeleteLastEvent()
public Event<?> getNextEvent()
public int getNextEventIndex()
public Event<?> previous()
public Event<?> next()
public void toEnd()
public void toBeginning()
public java.lang.String historyToString()
public int size()
public Event<?> getLastAddedEvent()
public boolean iteratorAtEnd()
public boolean iteratorAtBeginning()
public void setSaved(boolean saved)
public boolean isSaved()