sigmlanim
Class SignsListBuilder

java.lang.Object
  extended by sigmlanim.SignsListBuilder
All Implemented Interfaces:
SiGMLAnimationBuildHandler

public class SignsListBuilder
extends java.lang.Object
implements SiGMLAnimationBuildHandler

A simple 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 Summary
SignsListBuilder()
          Constructs a new signs list builder, with an initially empty signs list.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignsListBuilder

public SignsListBuilder()
Constructs a new signs list builder, with an initially empty signs list.

Method Detail

beginSignSequence

public void beginSignSequence()
Accepts notification of the start of the sign sequence.

Specified by:
beginSignSequence in interface SiGMLAnimationBuildHandler

setNextSign

public void setNextSign(AnimatedSign as)
Adds the next sign to the list.

Specified by:
setNextSign in interface SiGMLAnimationBuildHandler

nextSignAnimationIsDone

public void nextSignAnimationIsDone()
No-op: interface method, but never called in this implementation.

Specified by:
nextSignAnimationIsDone in interface SiGMLAnimationBuildHandler

endSignSequence

public void endSignSequence()
Accepts notification of the completion of the sign sequence, making the resulting list available for use by getSigns().

Specified by:
endSignSequence in interface SiGMLAnimationBuildHandler

getSigns

public java.util.List<AnimatedSign> getSigns()
Returns this builder's final signs list.