org.robokind.api.animation.editor.history
Class HistoryStack

java.lang.Object
  extended by org.robokind.api.animation.editor.history.HistoryStack

public class HistoryStack
extends Object

Author:
Matthew Stevenson

Nested Class Summary
 class HistoryStack.EmptyAction
           
 
Constructor Summary
HistoryStack()
           
 
Method Summary
 void addEvent(ActionHistoryEvent e)
           
 void addListener(HistoryListener listener)
           
 void back(int t)
           
 void clear()
           
 void forward(int t)
           
 int getCurrentRedoCount()
           
 int getCurrentUndoCount()
           
 ActionHistoryEvent getEvent(int i)
           
 List<ActionHistoryEvent> getHistory()
           
 int getSelectedIndex()
           
 void gotoTime(int t)
           
 void move(int t)
           
 void removeListener(HistoryListener listener)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryStack

public HistoryStack()
Method Detail

addListener

public void addListener(HistoryListener listener)
Parameters:
listener -

removeListener

public void removeListener(HistoryListener listener)
Parameters:
listener -

getHistory

public List<ActionHistoryEvent> getHistory()
Returns:

addEvent

public void addEvent(ActionHistoryEvent e)
Parameters:
e -

getEvent

public ActionHistoryEvent getEvent(int i)
Parameters:
i -
Returns:

gotoTime

public void gotoTime(int t)
Parameters:
t -

move

public void move(int t)
Parameters:
t -

forward

public void forward(int t)
Parameters:
t -

back

public void back(int t)
Parameters:
t -

getSelectedIndex

public int getSelectedIndex()
Returns:

getCurrentUndoCount

public int getCurrentUndoCount()
Returns:

getCurrentRedoCount

public int getCurrentRedoCount()
Returns:

size

public int size()
Returns:

clear

public void clear()


Copyright © 2011. All Rights Reserved.