Package com.jme3.cinematic
Class TimeLine
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addKeyFrameAtIndex
(int keyFrameIndex, KeyFrame keyFrame) void
addKeyFrameAtTime
(float time, KeyFrame keyFrame) getKeyFrameAtIndex
(int keyFrameIndex) getKeyFrameAtTime
(float time) int
getKeyFrameIndexFromTime
(float time) float
getKeyFrameTime
(KeyFrame keyFrame) int
void
read
(JmeImporter im) void
removeKeyFrame
(float time) void
removeKeyFrame
(int keyFrameIndex) void
write
(JmeExporter ex) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
keyFramesPerSeconds
protected int keyFramesPerSeconds -
lastKeyFrameIndex
protected int lastKeyFrameIndex
-
-
Constructor Details
-
TimeLine
public TimeLine()
-
-
Method Details
-
getKeyFrameAtTime
-
getKeyFrameAtIndex
-
addKeyFrameAtTime
-
addKeyFrameAtIndex
-
removeKeyFrame
public void removeKeyFrame(int keyFrameIndex) -
removeKeyFrame
public void removeKeyFrame(float time) -
getKeyFrameIndexFromTime
public int getKeyFrameIndexFromTime(float time) -
getKeyFrameTime
-
getAllKeyFrames
-
getLastKeyFrameIndex
public int getLastKeyFrameIndex() -
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-