algoanim.animalscript
Class AnimalTextGenerator

java.lang.Object
  extended by algoanim.primitives.generators.Generator
      extended by algoanim.animalscript.AnimalGenerator
          extended by algoanim.animalscript.AnimalTextGenerator
All Implemented Interfaces:
AdvancedTextGeneratorInterface, GeneratorInterface, TextGenerator

public class AnimalTextGenerator
extends AnimalGenerator
implements TextGenerator

Author:
Stephan Mehlhase
See Also:
TextGenerator

Field Summary
 
Fields inherited from class algoanim.primitives.generators.Generator
lang
 
Constructor Summary
AnimalTextGenerator(Language aLang)
           
 
Method Summary
 void create(Text t)
          Creates the originating script code for a given Text, due to the fact that before a primitive can be worked with it has to be defined and made known to the script language.
 void setFont(Primitive p, java.awt.Font newFont, Timing delay, Timing duration)
          updates the font of this text component (not supported by all primitives!).
 void setText(Primitive p, java.lang.String newText, Timing delay, Timing duration)
          updates the text of this text component (not supported by all primitives!).
 
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

AnimalTextGenerator

public AnimalTextGenerator(Language aLang)
Parameters:
aLang - the associated Language object.
Method Detail

create

public void create(Text t)
Description copied from interface: TextGenerator
Creates the originating script code for a given Text, due to the fact that before a primitive can be worked with it has to be defined and made known to the script language.

Specified by:
create in interface TextGenerator
Parameters:
t - the Text for which the initiate script code shall be created.
See Also:
#create(algoanim.primitives.Text)

setFont

public void setFont(Primitive p,
                    java.awt.Font newFont,
                    Timing delay,
                    Timing duration)
updates the font of this text component (not supported by all primitives!).

Specified by:
setFont in interface AdvancedTextGeneratorInterface
Parameters:
p - the Primitive to change.
newFont - the new text to be used
delay - the delay until the operation starts
duration - the duration for the operation

setText

public void setText(Primitive p,
                    java.lang.String newText,
                    Timing delay,
                    Timing duration)
updates the text of this text component (not supported by all primitives!).

Specified by:
setText in interface AdvancedTextGeneratorInterface
Parameters:
p - the Primitive to change.
newText - the new text to be used
delay - the delay until the operation starts
duration - the duration for the operation