public class AnimationTrack
extends java.lang.Object
| Constructor and Description |
|---|
AnimationTrack() |
| Modifier and Type | Method and Description |
|---|---|
float |
getLoopPause() |
KeyFrame<Percent> |
getSpeed() |
float |
getSpeed(Timeline timeline,
double curTime) |
float |
getSpeedAt(double time) |
float |
getStartTime(Animation animation) |
double |
getTime(Timeline timeline,
Animation animation) |
float |
getTimeOffset() |
KeyFrame<Percent> |
getWeight() |
float |
getWeight(Timeline timeline,
double curTime) |
float |
getWeightAt(double time) |
boolean |
isLoop() |
void |
setLoop(boolean loop) |
void |
setLoopPause(float silent) |
void |
setSpeed(float speed) |
void |
setSpeed(KeyFrame<Percent> speed) |
void |
setTimeOffset(float timeOffset) |
void |
setWeight(float weight) |
void |
setWeight(KeyFrame<Percent> weight) |
double |
toAnimationTime(Animation animation,
double contextTime) |
double |
toTimelineTime(Animation animation,
double animTime) |
void |
useAnimation(Animation animation)
Optional: set timeOffset and loop fields according to the specified
Animation |
public final void useAnimation(Animation animation)
Animationanimation - an Animationpublic final double getTime(Timeline timeline, Animation animation)
timeline - a timeline which define the global timeanimation - an Animation to play on the trackTimeline time on this AnimationTrackpublic final float getSpeed(Timeline timeline, double curTime)
timeline - curTime - value returned by getTime(Timeline, Animation)public final float getWeight(Timeline timeline, double curTime)
timeline - curTime - value returned by getTime(Timeline, Animation)public final double toAnimationTime(Animation animation, double contextTime)
public final double toTimelineTime(Animation animation, double animTime)
public final float getStartTime(Animation animation)
public final void setSpeed(KeyFrame<Percent> speed)
speed - set a variable speedpublic final void setSpeed(float speed)
speed - set a fixed speedpublic final float getSpeedAt(double time)
public final void setWeight(KeyFrame<Percent> weight)
weight - set a variable weightpublic final void setWeight(float weight)
weight - set a fixed weightpublic final float getWeightAt(double time)
public final boolean isLoop()
Animationpublic final void setLoop(boolean loop)
public final float getTimeOffset()
AnimationTrackpublic final void setTimeOffset(float timeOffset)
public final float getLoopPause()
Animation is pause after loopingpublic final void setLoopPause(float silent)
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com