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

java.lang.Object
  extended by org.robokind.api.animation.editor.history.HistoryStack
Direct Known Subclasses:
HistoryActionGroup

public class HistoryStack
extends Object

Author:
Matthew Stevenson

Nested Class Summary
 class HistoryStack.EmptyAction
           
 
Constructor Summary
HistoryStack()
           
 
Method Summary
 void addEvent(HistoryAction e)
           
 void addListener(HistoryListener listener)
           
 void back(int t)
           
 void clear()
           
 void forward(int t)
           
 int getCurrentRedoCount()
           
 int getCurrentUndoCount()
           
 HistoryAction getEvent(int i)
           
 List<HistoryAction> getHistory()
           
 int getSelectedIndex()
           
 void gotoEnd()
           
 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<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.