algoanim.animalscript
Class AnimalDoubleArrayGenerator

java.lang.Object
  extended by algoanim.primitives.generators.Generator
      extended by algoanim.animalscript.AnimalGenerator
          extended by algoanim.animalscript.AnimalArrayGenerator
              extended by algoanim.animalscript.AnimalDoubleArrayGenerator
All Implemented Interfaces:
DoubleArrayGenerator, GeneratorInterface, GenericArrayGenerator

public class AnimalDoubleArrayGenerator
extends AnimalArrayGenerator
implements DoubleArrayGenerator

Author:
Guido Roessling
See Also:
DoubleArrayGenerator

Field Summary
 
Fields inherited from class algoanim.primitives.generators.Generator
lang
 
Constructor Summary
AnimalDoubleArrayGenerator(AnimalScript as)
           
 
Method Summary
 void create(DoubleArray anArray)
          Creates the originating script code for a given IntArray, 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 put(DoubleArray iap, int where, double what, Timing delay, Timing duration)
          Inserts an int at certain position in the given IntArray.
 
Methods inherited from class algoanim.animalscript.AnimalArrayGenerator
createEntry, createEntry, highlightCell, highlightCell, highlightElem, highlightElem, swap, unhighlightCell, unhighlightCell, unhighlightElem, unhighlightElem
 
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.GenericArrayGenerator
highlightCell, highlightCell, highlightElem, highlightElem, swap, unhighlightCell, unhighlightCell, unhighlightElem, unhighlightElem
 
Methods inherited from interface algoanim.primitives.generators.GeneratorInterface
changeColor, exchange, getLanguage, hide, moveBy, moveTo, moveVia, rotate, rotate, show
 

Constructor Detail

AnimalDoubleArrayGenerator

public AnimalDoubleArrayGenerator(AnimalScript as)
Parameters:
as - the associated Language object.
Method Detail

create

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

put

public void put(DoubleArray iap,
                int where,
                double what,
                Timing delay,
                Timing duration)
Description copied from interface: DoubleArrayGenerator
Inserts an int at certain position in the given IntArray.

Specified by:
put in interface DoubleArrayGenerator
Parameters:
iap - the IntArray in which to insert the value.
where - the position where the value shall be inserted.
what - the int value to insert.
delay - the time to wait until the operation shall be performed.
duration - the duration of the operation.
See Also:
#put( algoanim.primitives.IntArray, int, int, algoanim.util.Timing, algoanim.util.Timing)