algoanim.animalscript
Class AnimalTextGenerator
java.lang.Object
algoanim.primitives.generators.Generator
algoanim.animalscript.AnimalGenerator
algoanim.animalscript.AnimalTextGenerator
- All Implemented Interfaces:
- AdvancedTextGeneratorInterface, GeneratorInterface, TextGenerator
public class AnimalTextGenerator
- extends AnimalGenerator
- implements TextGenerator
- Author:
- Stephan Mehlhase
- See Also:
TextGenerator
| Fields inherited from class algoanim.primitives.generators.Generator |
lang |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnimalTextGenerator
public AnimalTextGenerator(Language aLang)
- Parameters:
aLang - the associated Language object.
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 useddelay - the delay until the operation startsduration - 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 useddelay - the delay until the operation startsduration - the duration for the operation