algoanim.animalscript
Class AnimalGroupGenerator

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

public class AnimalGroupGenerator
extends AnimalGenerator
implements GroupGenerator

Author:
jens
See Also:
GroupGenerator

Field Summary
 
Fields inherited from class algoanim.primitives.generators.Generator
lang
 
Constructor Summary
AnimalGroupGenerator(Language aLang)
           
 
Method Summary
 void create(Group g)
          Creates the originating script code for a given Group, 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 remove(Group g, Primitive p)
          Removes an element from the given Group.
 
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

AnimalGroupGenerator

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

create

public void create(Group g)
Description copied from interface: GroupGenerator
Creates the originating script code for a given Group, 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 GroupGenerator
Parameters:
g - the Group for which the initiate script code shall be created.
See Also:
#create(algoanim.primitives.Group)

remove

public void remove(Group g,
                   Primitive p)
Description copied from interface: GroupGenerator
Removes an element from the given Group.

Specified by:
remove in interface GroupGenerator
Parameters:
g - the Group.
p - the element to remove.
See Also:
#remove( algoanim.primitives.Group, algoanim.primitives.Primitive)