player
Class JASocketPlayer

java.lang.Object
  extended by player.JAFramesPlayer
      extended by player.JALoadingPlayer
          extended by player.JASocketPlayer
All Implemented Interfaces:
AvatarEventHandler

public class JASocketPlayer
extends JALoadingPlayer

A JASocketPlayer is a JAFramesPlayer equipped with the ability to accept SiGML input via a TCP/IP server socket, and then to play the signed animation defined by that SiGML input.


Field Summary
 
Fields inherited from class player.JAFramesPlayer
SZ_CAM_DATA
 
Constructor Summary
JASocketPlayer(JAOptions jopts, JACanvasEmbedder embedder, AvatarEventHandler aehdlr, JASocketPlayerEventHandler spehdlr, SpeedProvider sp)
          Constructs a new JASocketPlayer, with the the given JA options, avatar-canvas embedder, avatar-event handler, and player-event handler, with its cyclic-play flag OFF and its auto-play flag ON, intially.
JASocketPlayer(JAOptions jopts, JACanvasEmbedder embedder, AvatarEventHandler aehdlr, JASocketPlayerEventHandler spehdlr, SpeedProvider sp, boolean cyclic, boolean onesign, boolean auto)
          Constructs a new JASocketPlayer, with the given JA options, given avatar-canvas embedder, avatar-event handler, player-event handler, and initial settings of its cyclic-play and auto-play flags.
 
Method Summary
 boolean autoPlayIsOn()
          Returns the current setting of this player's auto-play flag.
 void setAutoPlay(boolean auto)
          Sets this player's auto-play flag as specified.
 void startSiGMLInput(JAOptions jopts)
          Creates this player's animation loader, and starts its SiGML input server; these functions could naturally be performed by the player's constructor, but for the sake of GUI responsiveness they are factored out into this separate initialisation method.
 void terminate()
          Terminates this player, including shut-down of its SiGML-input server.
 
Methods inherited from class player.JALoadingPlayer
playCAS, playSiGML, playSiGMLURL, processSiGMLInput, replay
 
Methods inherited from class player.JAFramesPlayer
avatarIsLoaded, avatarIsUnloaded, awaitPlayerInactive, clearAnimation, countFrames, countSigns, createStandardCameraChangeMonitor, currentSign, ensureAnimationIsComplete, framePlayFinishes, framePlayStarts, getAnimation, getFrameIndexAccess, hasAnimationData, makeSignStatusRecord, playerIsActive, requestSwitchAvatar, resumePlaying, sequencePlayFinishes, sequencePlayStarts, setAnimation, setCyclicPlay, setSingleSignPlay, showFrame, showFrame, startPlaying, stopPlaying, suspendPlaying
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JASocketPlayer

public JASocketPlayer(JAOptions jopts,
                      JACanvasEmbedder embedder,
                      AvatarEventHandler aehdlr,
                      JASocketPlayerEventHandler spehdlr,
                      SpeedProvider sp)
Constructs a new JASocketPlayer, with the the given JA options, avatar-canvas embedder, avatar-event handler, and player-event handler, with its cyclic-play flag OFF and its auto-play flag ON, intially.


JASocketPlayer

public JASocketPlayer(JAOptions jopts,
                      JACanvasEmbedder embedder,
                      AvatarEventHandler aehdlr,
                      JASocketPlayerEventHandler spehdlr,
                      SpeedProvider sp,
                      boolean cyclic,
                      boolean onesign,
                      boolean auto)
Constructs a new JASocketPlayer, with the given JA options, given avatar-canvas embedder, avatar-event handler, player-event handler, and initial settings of its cyclic-play and auto-play flags.

Method Detail

startSiGMLInput

public void startSiGMLInput(JAOptions jopts)
Creates this player's animation loader, and starts its SiGML input server; these functions could naturally be performed by the player's constructor, but for the sake of GUI responsiveness they are factored out into this separate initialisation method.


setAutoPlay

public void setAutoPlay(boolean auto)
Sets this player's auto-play flag as specified.


autoPlayIsOn

public boolean autoPlayIsOn()
Returns the current setting of this player's auto-play flag.


terminate

public void terminate()
               throws java.lang.InterruptedException
Terminates this player, including shut-down of its SiGML-input server.

Overrides:
terminate in class JAFramesPlayer
Throws:
java.lang.InterruptedException