public class SPAPlayerEventHandler
extends java.lang.Object
implements player.JALoadingPlayerEventHandler
SPAEvents which it posts (typically to
the SPA event dispatcher thread) via an event target supplied at
construction time.| Constructor and Description |
|---|
SPAPlayerEventHandler(SPAEventTarget etarget)
Constructs a new loading player event handler, which will direct
the events it generates to the given target.
|
| Modifier and Type | Method and Description |
|---|---|
void |
loaderHasStarted()
Handles a loader started event, posting a corresponding event
to this handler's target, and checking the resulting acknowledgement.
|
void |
loaderIsDone(boolean gotanim,
int nsigns,
int nframes)
Handles an animation load done event, with the given success
flag and sign- and frame-counts.
|
void |
nextSignLoaded(int s,
int flimit)
Handles a next sign (in animation) loaded event, with the given
sign index and frame index limit values.
|
void |
playerHasStarted()
Handles a player started event.
|
void |
playerIsAtNewFrame(player.AnimationScan scan,
boolean dropped)
Handles a player at new frame event, with the associated scanner,
and frame dropped flag.
|
void |
playerIsDone(player.AnimationScan scan)
Handles a player done event, with the associated scanner.
|
public SPAPlayerEventHandler(SPAEventTarget etarget)
public void loaderHasStarted()
loaderHasStarted in interface player.JALoadingPlayerEventHandlerpublic void nextSignLoaded(int s,
int flimit)
nextSignLoaded in interface player.JALoadingPlayerEventHandlerpublic void loaderIsDone(boolean gotanim,
int nsigns,
int nframes)
loaderIsDone in interface player.JALoadingPlayerEventHandlerpublic void playerHasStarted()
playerHasStarted in interface player.JAPlayerEventHandlerpublic void playerIsAtNewFrame(player.AnimationScan scan,
boolean dropped)
playerIsAtNewFrame in interface player.JAPlayerEventHandlerpublic void playerIsDone(player.AnimationScan scan)
playerIsDone in interface player.JAPlayerEventHandler