player
Class JALoadingPlayerEventAdapter

java.lang.Object
  extended by player.JAPlayerEventAdapter
      extended by player.JALoadingPlayerEventAdapter
All Implemented Interfaces:
JALoadingPlayerEventHandler, JAPlayerEventHandler
Direct Known Subclasses:
JASocketPlayerEventAdapter

public class JALoadingPlayerEventAdapter
extends JAPlayerEventAdapter
implements JALoadingPlayerEventHandler

Adapter class for the JALoadingPlayerEventHandler interface.


Constructor Summary
JALoadingPlayerEventAdapter()
           
 
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 i, int flimit)
          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 class player.JAPlayerEventAdapter
playerIsAtNewFrame, playerIsDone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface player.JAPlayerEventHandler
playerIsAtNewFrame, playerIsDone
 

Constructor Detail

JALoadingPlayerEventAdapter

public JALoadingPlayerEventAdapter()
Method Detail

loaderHasStarted

public void loaderHasStarted()
Description copied from interface: JALoadingPlayerEventHandler
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.

Specified by:
loaderHasStarted in interface JALoadingPlayerEventHandler

nextSignLoaded

public void nextSignLoaded(int i,
                           int flimit)
Description copied from interface: JALoadingPlayerEventHandler
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.

Specified by:
nextSignLoaded in interface JALoadingPlayerEventHandler

loaderIsDone

public void loaderIsDone(boolean gotframes,
                         int nsigns,
                         int nframes)
Description copied from interface: JALoadingPlayerEventHandler
Reports the completion of a load operation by this player's loader.

Specified by:
loaderIsDone in interface JALoadingPlayerEventHandler
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).