public class SignsArraySupplier extends java.lang.Object implements StreamedSiGMLSupplierForAnimationGen
StreamedSiGMLSupplierForAnimationGen
interface, which uses
a given array of SiGML signs, and which also provides a
method, waitUntilAllAnimated()
that blocks until all these
signs are known to have animation data attached.Constructor and Description |
---|
SignsArraySupplier(AnimatedSign[] signs)
Constructs a new SiGML signs supplier, usign the given data.
|
Modifier and Type | Method and Description |
---|---|
void |
doneSignAnimation()
Accepts notification that the most recently supplied sign
now has animation data attached, and if this is the final sign
signals completion of animation generation for the benefit of
waitUntilAllAnimated() . |
AnimatedSign |
getNextSignToBeAnimated()
Returns the next sign from this supplier's sign sequence.
|
void |
putProcessedSign(AnimatedSign as)
Accepts a notification from this supplier's client indicating that
it has processed a sign in the stream.
|
void |
waitUntilAllAnimated()
Blocks until this supplier's client signals that all its signs
now have animation data attached.
|
public SignsArraySupplier(AnimatedSign[] signs)
public AnimatedSign getNextSignToBeAnimated()
getNextSignToBeAnimated
in interface StreamedSiGMLSupplierForAnimationGen
public void putProcessedSign(AnimatedSign as)
StreamedSiGMLSupplierForAnimationGen
putProcessedSign
in interface StreamedSiGMLSupplierForAnimationGen
public void doneSignAnimation()
waitUntilAllAnimated()
.doneSignAnimation
in interface StreamedSiGMLSupplierForAnimationGen
public void waitUntilAllAnimated() throws java.lang.InterruptedException
java.lang.InterruptedException