public class RemoteAnimationPlayerClient extends org.jflux.api.core.util.DefaultNotifier<AnimationSignal> implements AnimationPlayer, org.jflux.api.core.Listener<AnimationSignal>
PROP_PLAYER_ID| Constructor and Description |
|---|
RemoteAnimationPlayerClient(org.osgi.framework.BundleContext context,
String animPlayerClientId,
String animPlayerHostId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimationSignalListener(org.jflux.api.core.Listener<AnimationSignal> listener)
Adds a Listener for AnimationSignal events.
|
void |
clearAnimations() |
String |
getAnimationPlayerId() |
List<AnimationJob> |
getCurrentAnimations()
Returns a List of all uncleared AnimationJobs which have been played by
the AnimationPlayer.
|
void |
handleEvent(AnimationSignal t) |
AnimationJob |
loopAnimation(Animation animation) |
AnimationJob |
loopAnimation(Animation animation,
boolean register) |
AnimationJob |
playAnimation(Animation animation)
Creates an AnimationJob which plays the given Animation.
|
AnimationJob |
playAnimation(Animation animation,
boolean register) |
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.
|
void |
setAnimationEventFactory(AnimationEvent.AnimationEventFactory factory) |
void |
setAnimationEventSender(org.jflux.api.messaging.rk.MessageSender<AnimationEvent> sender) |
void |
setAnimationSignalReceiver(org.jflux.api.messaging.rk.MessageAsyncReceiver<AnimationSignal> receiver) |
void |
stopAnimation(Animation animation) |
public String getAnimationPlayerId()
getAnimationPlayerId in interface AnimationPlayerpublic void setAnimationEventFactory(AnimationEvent.AnimationEventFactory factory)
public void setAnimationEventSender(org.jflux.api.messaging.rk.MessageSender<AnimationEvent> sender)
public void setAnimationSignalReceiver(org.jflux.api.messaging.rk.MessageAsyncReceiver<AnimationSignal> receiver)
public AnimationJob playAnimation(Animation animation, boolean register)
public AnimationJob playAnimation(Animation animation)
AnimationPlayerplayAnimation in interface AnimationPlayeranimation - Animation to playpublic AnimationJob loopAnimation(Animation animation, boolean register)
public AnimationJob loopAnimation(Animation animation)
public void stopAnimation(Animation animation)
public void clearAnimations()
public AnimationJob playAnimation(Animation animation, Long start, Long stop)
AnimationPlayerplayAnimation in interface AnimationPlayeranimation - Animation to playstart - animation start timestop - animation stop timepublic List<AnimationJob> getCurrentAnimations()
AnimationPlayergetCurrentAnimations in interface AnimationPlayerpublic void removeAnimationJob(AnimationJob job)
AnimationPlayerremoveAnimationJob in interface AnimationPlayerjob - AnimationJob to removepublic void addAnimationSignalListener(org.jflux.api.core.Listener<AnimationSignal> listener)
AnimationPlayeraddAnimationSignalListener in interface AnimationPlayerlistener - Listener for AnimationSignal eventspublic void removeAnimationSignalListener(org.jflux.api.core.Listener<AnimationSignal> listener)
AnimationPlayerremoveAnimationSignalListener in interface AnimationPlayerlistener - Listener for AnimationSignal eventspublic void handleEvent(AnimationSignal t)
handleEvent in interface org.jflux.api.core.Listener<AnimationSignal>Copyright © 2011-2014. All Rights Reserved.