public class SignsListBuilder extends java.lang.Object implements SiGMLAnimationBuildHandler
SiGMLAnimationBuildHandler implementation, which
accepts signs from its supplier, and builds them into a list, but
which does not expect the supplier to initiate animation generation
for any of these signs.
Thus the nextSignAnimationIsDone() interface method although
implemented (as a no-op) is not expected to be called.
When all signs have been supplied the list containing them becomes
available via the getSigns() method.| Constructor and Description |
|---|
SignsListBuilder()
Constructs a new signs list builder, with an initially empty
signs list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginSignSequence()
Accepts notification of the start of the sign sequence.
|
void |
endSignSequence()
Accepts notification of the completion of the sign sequence,
making the resulting list available for use by
getSigns(). |
java.util.List<AnimatedSign> |
getSigns()
Returns this builder's final signs list.
|
void |
nextSignAnimationIsDone()
No-op: interface method, but never called in this implementation.
|
void |
setNextSign(AnimatedSign as)
Adds the next sign to the list.
|
public SignsListBuilder()
public void beginSignSequence()
beginSignSequence in interface SiGMLAnimationBuildHandlerpublic void setNextSign(AnimatedSign as)
setNextSign in interface SiGMLAnimationBuildHandlerpublic void nextSignAnimationIsDone()
nextSignAnimationIsDone in interface SiGMLAnimationBuildHandlerpublic void endSignSequence()
getSigns().endSignSequence in interface SiGMLAnimationBuildHandlerpublic java.util.List<AnimatedSign> getSigns()