|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplayer.AnimationScheduler
public class AnimationScheduler
Schedules the rendering of a sequence of animation frames by a JA avatar.
Constructor Summary | |
---|---|
AnimationScheduler(View view,
CameraController camctrl,
AnimationScan ascan,
JAPlayerEventHandler peh,
SpeedProvider sp,
int fdlimit,
boolean showat)
Constructs a new animation scheduler. |
Method Summary | |
---|---|
void |
delay(float ms)
Delays the calling thread for the specified time (ms). |
void |
playAnimation()
Plays the animation sequence defined by the current settings of this scheduler's scanner, halting prematurely if requested. |
void |
requestStopPlayer()
Synchronously sets the STOP request flag. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnimationScheduler(View view, CameraController camctrl, AnimationScan ascan, JAPlayerEventHandler peh, SpeedProvider sp, int fdlimit, boolean showat)
view
- the avatar view to be animated.camctrl
- the camera controller for the avatar view.ascan
- the animation scanner defining the frame sequence
to be played.peh
- the player event handler for animations managed by
this scheduler.sp
- the speed provider that is to control the speed
of this scheduler's animations.fdlimit
- the time drift limit, in milliseconds, allowed for
any frame played by this controller, that is, the
largest amount of time by which the playing of the
frame can be late without that frame being dropped.showat
- flag indicating if detailed animation time data
is to be displayed for every frame animated.Method Detail |
---|
public void requestStopPlayer()
public void playAnimation() throws JAException, java.lang.InterruptedException
JAException
java.lang.InterruptedException
public void delay(float ms) throws java.lang.InterruptedException
java.lang.InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |