public interface AnimationPlayer
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_PLAYER_ID |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimationSignalListener(org.jflux.api.core.Listener<AnimationSignal> listener)
Adds a Listener for AnimationSignal events.
|
String |
getAnimationPlayerId() |
List<AnimationJob> |
getCurrentAnimations()
Returns a List of all uncleared AnimationJobs which have been played by
the AnimationPlayer.
|
AnimationJob |
playAnimation(Animation animation)
Creates an AnimationJob which plays the given Animation.
|
AnimationJob |
playAnimation(Animation animation,
Long start,
Long stop)
Creates an AnimationJob which plays the given Animation.
|
void |
removeAnimationJob(AnimationJob job)
Clears an AnimationJob from the List of AnimationJobs from the
AnimationPlayer.
|
void |
removeAnimationSignalListener(org.jflux.api.core.Listener<AnimationSignal> listener)
Removes a Listener for AnimationSignal events.
|
static final String PROP_PLAYER_ID
String getAnimationPlayerId()
AnimationJob playAnimation(Animation animation)
animation - Animation to playAnimationJob playAnimation(Animation animation, Long start, Long stop)
animation - Animation to playstart - animation start timestop - animation stop timeList<AnimationJob> getCurrentAnimations()
void removeAnimationJob(AnimationJob job)
job - AnimationJob to removevoid addAnimationSignalListener(org.jflux.api.core.Listener<AnimationSignal> listener)
listener - Listener for AnimationSignal eventsvoid removeAnimationSignalListener(org.jflux.api.core.Listener<AnimationSignal> listener)
listener - Listener for AnimationSignal eventsCopyright © 2011-2014. All Rights Reserved.