EventChainSystem

Undocumented in source.

Constructors

this
this(int maxEventNumber)
Undocumented in source.

Members

Functions

appendEvent
void appendEvent(UndoableEvent e)

Appends an event on the top. If the maximum event number is reached, it deletes the oldest one.

getCurrentLength
int getCurrentLength()

Sets the current number of events that are stored.

getMaxLength
int getMaxLength()

Gets the maximum number of events that can be stored.

redoEventAtGivenPosition
void redoEventAtGivenPosition(int i)

Redos the event indicated by i in the list.

redoTopEvent
void redoTopEvent()

Redos the last undone event in the list indicated by the internal variable, topEvent. If topEvent equals the number of current events, it does nothing.

removeEvent
void removeEvent(int i)

Removes the event stored at position indicated by i.

setLength
void setLength(int i)

Sets the maximum number of events that can be stored.

undoEventAtGivenPosition
void undoEventAtGivenPosition(int i)

Undos the event indicated by i in the list.

undoTopEvent
void undoTopEvent()

Undos the top event in the list indicated by the internal variable, topEvent. If topEvent equals -1, it does nothing.

Variables

eventList
UndoableEvent[] eventList;
maxEventNumber
int maxEventNumber;
Undocumented in source.
topEvent
int topEvent;
Undocumented in source.

Meta