public class TimeLine extends java.util.HashMap<java.lang.Integer,KeyFrame> implements Savable
Modifier and Type | Field and Description |
---|---|
protected int |
keyFramesPerSeconds |
protected int |
lastKeyFrameIndex |
Constructor and Description |
---|
TimeLine() |
Modifier and Type | Method and Description |
---|---|
void |
addKeyFrameAtIndex(int keyFrameIndex,
KeyFrame keyFrame) |
void |
addKeyFrameAtTime(float time,
KeyFrame keyFrame) |
java.util.Collection<KeyFrame> |
getAllKeyFrames() |
KeyFrame |
getKeyFrameAtIndex(int keyFrameIndex) |
KeyFrame |
getKeyFrameAtTime(float time) |
int |
getKeyFrameIndexFromTime(float time) |
float |
getKeyFrameTime(KeyFrame keyFrame) |
int |
getLastKeyFrameIndex() |
void |
read(JmeImporter im) |
void |
removeKeyFrame(float time) |
void |
removeKeyFrame(int keyFrameIndex) |
void |
write(JmeExporter ex) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
protected int keyFramesPerSeconds
protected int lastKeyFrameIndex
public KeyFrame getKeyFrameAtTime(float time)
public KeyFrame getKeyFrameAtIndex(int keyFrameIndex)
public void addKeyFrameAtTime(float time, KeyFrame keyFrame)
public void addKeyFrameAtIndex(int keyFrameIndex, KeyFrame keyFrame)
public void removeKeyFrame(int keyFrameIndex)
public void removeKeyFrame(float time)
public int getKeyFrameIndexFromTime(float time)
public float getKeyFrameTime(KeyFrame keyFrame)
public java.util.Collection<KeyFrame> getAllKeyFrames()
public int getLastKeyFrameIndex()
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException