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 |
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 StreamedSiGMLSupplierForAnimationGenpublic void doneSignAnimation()
waitUntilAllAnimated().doneSignAnimation in interface StreamedSiGMLSupplierForAnimationGenpublic void waitUntilAllAnimated()
throws java.lang.InterruptedException
java.lang.InterruptedException