public class Timeline
extends java.lang.Object
| Constructor and Description |
|---|
Timeline() |
| Modifier and Type | Method and Description |
|---|---|
Timeline |
clone() |
double |
getDuration() |
float |
getProgression() |
float |
getTime() |
double |
getTimeD()
double precision time of
getTime() |
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 double getDuration()
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 getTime()
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 timetimePassedMs - time passed in millisecond since the last update(long)Timeline was changedBonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com