algoanim.animalscript
Class AVInteractionTextGenerator

java.lang.Object
  extended by algoanim.primitives.generators.Generator
      extended by algoanim.animalscript.AnimalGenerator
          extended by algoanim.animalscript.AVInteractionTextGenerator
All Implemented Interfaces:
InteractiveElementGenerator, GeneratorInterface

public class AVInteractionTextGenerator
extends AnimalGenerator
implements InteractiveElementGenerator


Field Summary
 
Fields inherited from class algoanim.primitives.generators.Generator
lang
 
Constructor Summary
AVInteractionTextGenerator(AnimalScript as)
           
AVInteractionTextGenerator(AnimalScript as, java.lang.String key)
           
 
Method Summary
 void createDocumentationLink(DocumentationLink docuLink)
          Creates the script code for a given TrueFalseQuestion
 void createDocumentationLinkCode(DocumentationLink docuLink)
           
 void createFIBQuestion(FillInBlanksQuestion q)
          Creates the script code for a given FillInBlanksQuestion
 void createFIBQuestionCode(FillInBlanksQuestion fibQuestion)
           
 void createGroupInfoCode(GroupInfo group)
           
 void createInteractiveElementCode(InteractiveElement element)
          creates the actual code for representing an interactive element
 void createMCQuestion(MultipleChoiceQuestion mcQuestion)
          Creates the script code for a given MultipleChoiceQuestion
 void createMCQuestionCode(MultipleChoiceQuestion mcQuestion)
           
 void createMSQuestion(MultipleSelectionQuestion msQuestion)
          Creates the script code for a given MultipleSelectionQuestion
 void createMSQuestionCode(MultipleSelectionQuestion msQuestion)
           
 void createTFQuestion(TrueFalseQuestion q)
          Creates the script code for a given TrueFalseQuestion
 void createTFQuestionCode(TrueFalseQuestion tfQuestion)
           
 void finalizeInteractiveElements()
          finalize the writing of the interaction components
 
Methods inherited from class algoanim.animalscript.AnimalGenerator
addBooleanOption, addBooleanSwitch, addColorOption, addColorOption, addFontOption, addFontOption, addIntOption, addWithTiming, changeColor, exchange, hide, makeColorDef, makeColorDef, makeDisplayOptionsDef, makeDisplayOptionsDef, makeDurationTimingDef, makeHiddenDef, makeNodeDef, makeOffsetTimingDef, moveBy, moveTo, moveVia, rotate, rotate, show
 
Methods inherited from class algoanim.primitives.generators.Generator
getLanguage, isNameUsed, isValidDirection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface algoanim.primitives.generators.GeneratorInterface
changeColor, exchange, getLanguage, hide, moveBy, moveTo, moveVia, rotate, rotate, show
 

Constructor Detail

AVInteractionTextGenerator

public AVInteractionTextGenerator(AnimalScript as)

AVInteractionTextGenerator

public AVInteractionTextGenerator(AnimalScript as,
                                  java.lang.String key)
Method Detail

createInteractiveElementCode

public void createInteractiveElementCode(InteractiveElement element)
Description copied from interface: InteractiveElementGenerator
creates the actual code for representing an interactive element

Specified by:
createInteractiveElementCode in interface InteractiveElementGenerator
Parameters:
element - the element to be generated

createDocumentationLink

public void createDocumentationLink(DocumentationLink docuLink)
Description copied from interface: InteractiveElementGenerator
Creates the script code for a given TrueFalseQuestion

Specified by:
createDocumentationLink in interface InteractiveElementGenerator
Parameters:
docuLink - the TrueFalseQuestion for which the code is to be generated

createDocumentationLinkCode

public void createDocumentationLinkCode(DocumentationLink docuLink)

createGroupInfoCode

public void createGroupInfoCode(GroupInfo group)

createTFQuestion

public void createTFQuestion(TrueFalseQuestion q)
Description copied from interface: InteractiveElementGenerator
Creates the script code for a given TrueFalseQuestion

Specified by:
createTFQuestion in interface InteractiveElementGenerator
Parameters:
q - the TrueFalseQuestion for which the code is to be generated

createTFQuestionCode

public void createTFQuestionCode(TrueFalseQuestion tfQuestion)

createFIBQuestion

public void createFIBQuestion(FillInBlanksQuestion q)
Description copied from interface: InteractiveElementGenerator
Creates the script code for a given FillInBlanksQuestion

Specified by:
createFIBQuestion in interface InteractiveElementGenerator
Parameters:
q - the FillInBlanksQuestion for which the code is to be generated

createFIBQuestionCode

public void createFIBQuestionCode(FillInBlanksQuestion fibQuestion)

createMCQuestion

public void createMCQuestion(MultipleChoiceQuestion mcQuestion)
Description copied from interface: InteractiveElementGenerator
Creates the script code for a given MultipleChoiceQuestion

Specified by:
createMCQuestion in interface InteractiveElementGenerator
Parameters:
mcQuestion - the TrueFalseQuestion for which the code is to be generated

createMCQuestionCode

public void createMCQuestionCode(MultipleChoiceQuestion mcQuestion)

createMSQuestion

public void createMSQuestion(MultipleSelectionQuestion msQuestion)
Description copied from interface: InteractiveElementGenerator
Creates the script code for a given MultipleSelectionQuestion

Specified by:
createMSQuestion in interface InteractiveElementGenerator
Parameters:
msQuestion - the TrueFalseQuestion for which the code is to be generated

createMSQuestionCode

public void createMSQuestionCode(MultipleSelectionQuestion msQuestion)

finalizeInteractiveElements

public void finalizeInteractiveElements()
finalize the writing of the interaction components

Specified by:
finalizeInteractiveElements in interface InteractiveElementGenerator