Class Animation

java.lang.Object
  |
  +--Animation

public class Animation
extends java.lang.Object

All of the state for an animation. An animation is a sequence of AnimationChunks.


Field Summary
(package private)  java.lang.String filename
           
 
Constructor Summary
Animation(int numChunks)
           
 
Method Summary
 void clean()
          Recomputes start times and indices of each chunk.
 ChunkDisplay getDisplay(int index, AnimationEditor editor)
           
 double getDuration(int index)
           
 ELExpression getExpression(int index)
           
 double getStartTime(int index)
           
 int numFrames()
           
 void save(java.io.File file)
          Saves this animation to filename, overwriting any pre-existing file.
 void setDirty()
          You must call this whenever you change the state of something in the animation.
 void setDuration(int index, double duration)
           
 void setExpression(int index, ELExpression expression)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filename

java.lang.String filename
Constructor Detail

Animation

public Animation(int numChunks)
Method Detail

getDisplay

public ChunkDisplay getDisplay(int index,
                               AnimationEditor editor)

numFrames

public int numFrames()

setDuration

public void setDuration(int index,
                        double duration)

setExpression

public void setExpression(int index,
                          ELExpression expression)

getExpression

public ELExpression getExpression(int index)

getDuration

public double getDuration(int index)

getStartTime

public double getStartTime(int index)

setDirty

public void setDirty()
You must call this whenever you change the state of something in the animation. It will trigger a clean when some value is later accessed.

clean

public void clean()
Recomputes start times and indices of each chunk.

save

public void save(java.io.File file)
Saves this animation to filename, overwriting any pre-existing file.