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
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filename
java.lang.String filename
Animation
public Animation(int numChunks)
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.