|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsigmlanim.sigmlstream.SiGMLInputAnimGenCoordinator
public class SiGMLInputAnimGenCoordinator
A SiGMLInputAnimGenCoordinator acts both as a
StreamedSiGMLReceiver
and as a
StreamedSiGMLSupplierForAnimationGen
,
passing the (as yet unanimated) signs it receives from its source on
to a SiGMLAnimationBuildHandler
, supplied at construction time,
and also caching them and passing them on to the coordinator's
target animation generator
Constructor Summary | |
---|---|
SiGMLInputAnimGenCoordinator(SiGMLAnimationBuildHandler sab)
Constructs a new SiGML input animation generation coordinator, supplying the generated signs to the given animation builder. |
Method Summary | |
---|---|
void |
abortCurrentSiGMLStream()
Notifies this receiver that the sign stream associated with the most recent checkpoint (established using addStreamAbortCheckpoint() ) has now been aborted, so that
the receiver can respond appropriately. |
void |
addStreamAbortCheckpoint()
Sets a checkpoint for abortion of the sign stream generated for an individual SiGML document. |
void |
beginSignStream()
Accepts notification of the start either of the entire input sign stream, or of an indirectly accessed stream embedded within it, keeping track of the level of such embedding. |
void |
clearStreamAbortCheckpoint()
Clears the most recently established stream abortion checkpoint. |
void |
doneSignAnimation()
Accepts notification from the animation generator that one more sign has been generated, and forwards this notice to this coordinator's animation builder. |
void |
endSignStream()
Accepts notification of the completion either of the entire input sign stream, or of an indirectly accessed stream embedded within it, keeping track of the embedding level and notifying this coordinator's animation builder when the end of the entire input stream has been encountered. |
AnimatedSign |
getNextSignToBeAnimated()
Blocks if necessary until sufficent data is available, and then returns the next sign for animation generation, or null if
the input sign sequence is known to be exhausted. |
void |
setNewPlayerSettings(sigmlgen.playerctrl.PlayerSettings ps)
Accepts a new player settings specification from the input source; these settings will be applied to the next sign received. |
void |
setNextSign(java.lang.String gsigml,
java.lang.String gloss)
Accepts the next gestural SiGML sign, as specified by the arguments, from the input source, passing it on to this coordinator's animation builder, and queuing it so that it can be supplied when requested from this coordinator's target animation generator. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SiGMLInputAnimGenCoordinator(SiGMLAnimationBuildHandler sab)
Method Detail |
---|
public void beginSignStream()
beginSignStream
in interface StreamedSiGMLReceiver
public void setNewPlayerSettings(sigmlgen.playerctrl.PlayerSettings ps)
setNewPlayerSettings
in interface StreamedSiGMLReceiver
public void setNextSign(java.lang.String gsigml, java.lang.String gloss)
setNextSign
in interface StreamedSiGMLReceiver
public void endSignStream()
endSignStream
in interface StreamedSiGMLReceiver
public void addStreamAbortCheckpoint()
clearStreamAbortCheckpoint()
or of
abortCurrentSiGMLStream()
.
addStreamAbortCheckpoint
in interface StreamedSiGMLReceiver
public void abortCurrentSiGMLStream()
addStreamAbortCheckpoint()
) has now been aborted, so that
the receiver can respond appropriately.
If the stream in question has started it is now terminated, and
if it is the top-level stream and has not yet started, an empty
sign sequence is notified to this coordinator's animation builder.
abortCurrentSiGMLStream
in interface StreamedSiGMLReceiver
public void clearStreamAbortCheckpoint()
clearStreamAbortCheckpoint
in interface StreamedSiGMLReceiver
public AnimatedSign getNextSignToBeAnimated() throws java.lang.InterruptedException
null
if
the input sign sequence is known to be exhausted.
getNextSignToBeAnimated
in interface StreamedSiGMLSupplierForAnimationGen
java.lang.InterruptedException
public void doneSignAnimation()
doneSignAnimation
in interface StreamedSiGMLSupplierForAnimationGen
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |