player
Interface JALoadingPlayerEventHandler

All Superinterfaces:
JAPlayerEventHandler
All Known Subinterfaces:
JASocketPlayerEventHandler
All Known Implementing Classes:
JALoadingPlayerEventAdapter, JASocketPlayerEventAdapter

public interface JALoadingPlayerEventHandler
extends JAPlayerEventHandler

This is the interface via which a JALoadingPlayer provides notification of player events to its environment/owner. It extends the basic JAPlayerEventHandler interface with one additional event, which notifies completion of a CAS-load operation. 2007-08-07
Added the loaderHasStarted() and nextSignLoaded(int,int) events. 2008-06-25
Added sign- and frame-count parameters to loaderIsDone(boolean,int,int).


Method Summary
 void loaderHasStarted()
          Reports that the load operation has been initiated, so for example the associated SiGMLAnimation is available, although it is likely to be empty at this stage.
 void loaderIsDone(boolean gotframes, int nsigns, int nframes)
          Reports the completion of a load operation by this player's loader.
 void nextSignLoaded(int s, int nflimit)
          Reports that the next animated sign has been loaded, that is, the sign with the given index and with the given overall frame index limit value.
 
Methods inherited from interface player.JAPlayerEventHandler
playerIsAtNewFrame, playerIsDone
 

Method Detail

loaderHasStarted

void loaderHasStarted()
Reports that the load operation has been initiated, so for example the associated SiGMLAnimation is available, although it is likely to be empty at this stage.


nextSignLoaded

void nextSignLoaded(int s,
                    int nflimit)
Reports that the next animated sign has been loaded, that is, the sign with the given index and with the given overall frame index limit value.


loaderIsDone

void loaderIsDone(boolean gotframes,
                  int nsigns,
                  int nframes)
Reports the completion of a load operation by this player's loader.

Parameters:
gotframes - indicates whether or not the load operation delivered a playable set of animation frames.
nsigns - the number of signs in the animation (zero in case of failure).
nframes - the number of frames in the animation (zero in case of failure).