org.robokind.api.animation.editor.history
Class HistoryStack
java.lang.Object
org.robokind.api.animation.editor.history.HistoryStack
- Direct Known Subclasses:
- HistoryActionGroup
public class HistoryStack
- extends Object
- Author:
- Matthew Stevenson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HistoryStack
public HistoryStack()
addListener
public void addListener(HistoryListener listener)
- Parameters:
listener
-
removeListener
public void removeListener(HistoryListener listener)
- Parameters:
listener
-
getHistory
public List<HistoryAction> getHistory()
- Returns:
addEvent
public void addEvent(HistoryAction e)
- Parameters:
e
-
getEvent
public HistoryAction getEvent(int i)
- Parameters:
i
-
- Returns:
gotoTime
public void gotoTime(int t)
- Parameters:
t
-
gotoEnd
public void gotoEnd()
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-2013. All Rights Reserved.