public class Animation
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
protected static int |
completeTimelines |
| Constructor and Description |
|---|
Animation()
Creates default animation
|
Animation(AnimationSpeed speed)
Creates animation with a preset speed
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTimeline(AnimationTimeline timeline)
Adds a timeline in the animation
|
static boolean |
isRunning() |
void |
run() |
void |
runAnimation()
Starts the animation, where timelines run parallel
Note: This method is advised to be used at the end of initialization
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic Animation(AnimationSpeed speed)
Speed - of displaying component. Acceleration is the main factorpublic Animation()
public static boolean isRunning()
public void addTimeline(AnimationTimeline timeline)
public void runAnimation()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread