public class Timeline extends java.lang.Object implements IUpdatable
| Modifier and Type | Field and Description |
|---|---|
protected double |
time
Timeline value: animation context time
|
| Constructor and Description |
|---|
Timeline() |
| Modifier and Type | Method and Description |
|---|---|
Timeline |
clone() |
float |
getProgression() |
float |
getTimeAsFloat() |
boolean |
isAtEnd() |
void |
set(Timeline src) |
void |
setDuration(double duration) |
void |
setProgression(float percent) |
void |
setTime(double time) |
boolean |
update(long timePassedMs)
Update
AnimationTrack time |
public final Timeline clone()
clone in class java.lang.Objectpublic void set(Timeline src)
public final void setDuration(double duration)
duration - set the durationpublic final void setTime(double time)
time - set the Timeline time to the specified valuepublic final float getTimeAsFloat()
Timeline time. To get time in Animation or AnimationTrack, use AnimGraph.getKeyFrameNode() and AnimNode.getCurrentTime()AnimGraph.getKeyFrameNode(),
AnimNode.getCurrentTime()public final float getProgression()
duration is <= 0public final void setProgression(float percent)
public final boolean isAtEnd()
public final boolean update(long timePassedMs)
AnimationTrack timeupdate in interface IUpdatabletimePassedMs - time passed in millisecond since the last update(long)Timeline was changedBonzai 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