player
Class AnimationController
java.lang.Object
player.AnimationController
public class AnimationController
- extends java.lang.Object
Controller for animations by a JA avatar.
Method Summary |
static void |
delay(float ms)
Delays the calling thread for the specified time (ms). |
void |
playAnimation(SpeedProvider speedctrl)
Plays the animation sequence defined by the current settings of
this controller's scanner, halting prematurely if requested,
and responding dynamically to the given speed control. |
void |
requestStopPlayer()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnimationController
public AnimationController(View view,
CameraController camctrl,
AnimationScan ascan,
JAPlayerEventHandler peh,
int fdlimit,
boolean showat)
requestStopPlayer
public void requestStopPlayer()
playAnimation
public void playAnimation(SpeedProvider speedctrl)
throws JAException,
java.lang.InterruptedException
- Plays the animation sequence defined by the current settings of
this controller's scanner, halting prematurely if requested,
and responding dynamically to the given speed control.
- Throws:
JAException
java.lang.InterruptedException
delay
public static void delay(float ms)
throws java.lang.InterruptedException
- Delays the calling thread for the specified time (ms).
If ms==0, this is a no-op. Otherwise, we delay for at least
ms-0.5: the actual period of the delay may exceed ms by an
arbitrary amount -- depending on the quality of Thread.sleep().
- Throws:
java.lang.InterruptedException