algoanim.animalscript
Class AnimalDoubleMatrixGenerator

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

public class AnimalDoubleMatrixGenerator
extends AnimalGenerator
implements DoubleMatrixGenerator

Version:
0.4 2007-04-04
Author:
Dr. Guido Roessling (roessling@acm.org>
See Also:
IntMatrixGenerator

Field Summary
 
Fields inherited from class algoanim.primitives.generators.Generator
lang
 
Constructor Summary
AnimalDoubleMatrixGenerator(AnimalScript as)
           
 
Method Summary
 void create(DoubleMatrix aMatrix)
          Creates the originating script code for a given DoubleMatrix, 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 highlightCell(DoubleMatrix intMatrix, int row, int col, Timing offset, Timing duration)
          Highlights the array cell at a given position after a distinct offset of an DoubleMatrix.
 void highlightCellColumnRange(DoubleMatrix intMatrix, int row, int startCol, int endCol, Timing offset, Timing duration)
          Highlights a range of array cells of an DoubleMatrix.
 void highlightCellRowRange(DoubleMatrix intMatrix, int startRow, int endRow, int col, Timing offset, Timing duration)
          Highlights a range of array cells of an DoubleMatrix.
 void highlightElem(DoubleMatrix intMatrix, int row, int col, Timing offset, Timing duration)
          Highlights the array element of an DoubleMatrix at a given position after a distinct offset.
 void highlightElemColumnRange(DoubleMatrix intMatrix, int row, int startCol, int endCol, Timing offset, Timing duration)
          Highlights a range of array elements of an DoubleMatrix.
 void highlightElemRowRange(DoubleMatrix intMatrix, int startRow, int endRow, int col, Timing offset, Timing duration)
          Highlights a range of array elements of an DoubleMatrix.
 void put(DoubleMatrix intMatrix, int row, int col, double what, Timing delay, Timing duration)
          Inserts an double at certain position in the given DoubleMatrix.
 void swap(DoubleMatrix intMatrix, int sourceRow, int sourceCol, int targetRow, int targetCol, Timing delay, Timing duration)
          Swaps to values in a given DoubleMatrix.
 void unhighlightCell(DoubleMatrix intMatrix, int row, int col, Timing offset, Timing duration)
          Unhighlights the array cell of an DoubleMatrix at a given position after a distinct offset.
 void unhighlightCellColumnRange(DoubleMatrix intMatrix, int row, int startCol, int endCol, Timing offset, Timing duration)
          Unhighlights a range of array cells of an DoubleMatrix.
 void unhighlightCellRowRange(DoubleMatrix intMatrix, int startRow, int endRow, int col, Timing offset, Timing duration)
          Unhighlights a range of array cells of an DoubleMatrix.
 void unhighlightElem(DoubleMatrix intMatrix, int row, int col, Timing offset, Timing duration)
          Unhighlights the array element of an DoubleMatrix at a given position after a distinct offset.
 void unhighlightElemColumnRange(DoubleMatrix intMatrix, int row, int startCol, int endCol, Timing offset, Timing duration)
          Unhighlights a range of array elements of an DoubleMatrix.
 void unhighlightElemRowRange(DoubleMatrix intMatrix, int row, int startCol, int endCol, Timing offset, Timing duration)
          Unhighlights a range of array elements of an DoubleMatrix.
 
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

AnimalDoubleMatrixGenerator

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

create

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

put

public void put(DoubleMatrix intMatrix,
                int row,
                int col,
                double what,
                Timing delay,
                Timing duration)
Description copied from interface: DoubleMatrixGenerator
Inserts an double at certain position in the given DoubleMatrix.

Specified by:
put in interface DoubleMatrixGenerator
Parameters:
intMatrix - the DoubleMatrix in which to insert the value.
row - the row where the value shall be inserted.
col - the column where the value shall be inserted.
what - the double 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.DoubleMatrix, int, int, double, algoanim.util.Timing, algoanim.util.Timing)

swap

public void swap(DoubleMatrix intMatrix,
                 int sourceRow,
                 int sourceCol,
                 int targetRow,
                 int targetCol,
                 Timing delay,
                 Timing duration)
Description copied from interface: DoubleMatrixGenerator
Swaps to values in a given DoubleMatrix.

Specified by:
swap in interface DoubleMatrixGenerator
Parameters:
intMatrix - the DoubleMatrix in which to swap the two indizes.
sourceRow - the row of the first value to be swapped.
sourceCol - the column of the first value to be swapped.
targetRow - the row of the second value to be swapped.
targetCol - the column of the second value to be swapped.
delay - the time to wait until the operation shall be performed.
duration - the duration of the operation.
See Also:
DoubleMatrixGenerator.swap(algoanim.primitives.DoubleMatrix, int, int, int, int, algoanim.util.Timing, algoanim.util.Timing)

highlightCell

public void highlightCell(DoubleMatrix intMatrix,
                          int row,
                          int col,
                          Timing offset,
                          Timing duration)
Description copied from interface: DoubleMatrixGenerator
Highlights the array cell at a given position after a distinct offset of an DoubleMatrix.

Specified by:
highlightCell in interface DoubleMatrixGenerator
row - the row of the cell to highlight.
col - the column of the cell to highlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#highlightCell(DoubleMatrix, int, int, algoanim.util.Timing, algoanim.util.Timing)

highlightCellColumnRange

public void highlightCellColumnRange(DoubleMatrix intMatrix,
                                     int row,
                                     int startCol,
                                     int endCol,
                                     Timing offset,
                                     Timing duration)
Description copied from interface: DoubleMatrixGenerator
Highlights a range of array cells of an DoubleMatrix.

Specified by:
highlightCellColumnRange in interface DoubleMatrixGenerator
row - the row of the interval to highlight.
startCol - the start column of the interval to highlight.
endCol - the end column of the interval to highlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#highlightCellColumnRange(DoubleMatrix, int, int, int, algoanim.util.Timing, algoanim.util.Timing)

highlightCellRowRange

public void highlightCellRowRange(DoubleMatrix intMatrix,
                                  int startRow,
                                  int endRow,
                                  int col,
                                  Timing offset,
                                  Timing duration)
Description copied from interface: DoubleMatrixGenerator
Highlights a range of array cells of an DoubleMatrix.

Specified by:
highlightCellRowRange in interface DoubleMatrixGenerator
startRow - the start row of the interval to highlight.
endRow - the end row of the interval to highlight.
col - the column of the interval to highlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#highlightCellRowRange(DoubleMatrix, int, int, int, algoanim.util.Timing, algoanim.util.Timing)

highlightElem

public void highlightElem(DoubleMatrix intMatrix,
                          int row,
                          int col,
                          Timing offset,
                          Timing duration)
Description copied from interface: DoubleMatrixGenerator
Highlights the array element of an DoubleMatrix at a given position after a distinct offset.

Specified by:
highlightElem in interface DoubleMatrixGenerator
Parameters:
intMatrix - the DoubleMatrix to work on.
row - the row of the element to highlight.
col - the column of the element to highlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#highlightElem(DoubleMatrix, int, int, algoanim.util.Timing, algoanim.util.Timing)

highlightElemColumnRange

public void highlightElemColumnRange(DoubleMatrix intMatrix,
                                     int row,
                                     int startCol,
                                     int endCol,
                                     Timing offset,
                                     Timing duration)
Description copied from interface: DoubleMatrixGenerator
Highlights a range of array elements of an DoubleMatrix.

Specified by:
highlightElemColumnRange in interface DoubleMatrixGenerator
Parameters:
intMatrix - the DoubleMatrix to work on.
row - the row of the interval to highlight.
startCol - the start of the column interval to highlight.
endCol - the end of the column interval to highlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#highlightElemColumnRange(DoubleMatrix, int, int, int, algoanim.util.Timing, algoanim.util.Timing)

highlightElemRowRange

public void highlightElemRowRange(DoubleMatrix intMatrix,
                                  int startRow,
                                  int endRow,
                                  int col,
                                  Timing offset,
                                  Timing duration)
Description copied from interface: DoubleMatrixGenerator
Highlights a range of array elements of an DoubleMatrix.

Specified by:
highlightElemRowRange in interface DoubleMatrixGenerator
Parameters:
intMatrix - the DoubleMatrix to work on.
startRow - the start of the row interval to highlight.
endRow - the end of the row interval to highlight.
col - the column interval to highlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#highlightElemRowRange(DoubleMatrix, int, int, int, algoanim.util.Timing, algoanim.util.Timing)

unhighlightCell

public void unhighlightCell(DoubleMatrix intMatrix,
                            int row,
                            int col,
                            Timing offset,
                            Timing duration)
Description copied from interface: DoubleMatrixGenerator
Unhighlights the array cell of an DoubleMatrix at a given position after a distinct offset.

Specified by:
unhighlightCell in interface DoubleMatrixGenerator
Parameters:
intMatrix - the DoubleMatrix to work on.
row - the row of the cell to unhighlight.
col - the column of the cell to unhighlight
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#unhighlightCell(DoubleMatrix, int, int, algoanim.util.Timing, algoanim.util.Timing)

unhighlightCellColumnRange

public void unhighlightCellColumnRange(DoubleMatrix intMatrix,
                                       int row,
                                       int startCol,
                                       int endCol,
                                       Timing offset,
                                       Timing duration)
Description copied from interface: DoubleMatrixGenerator
Unhighlights a range of array cells of an DoubleMatrix.

Specified by:
unhighlightCellColumnRange in interface DoubleMatrixGenerator
row - the row of the interval to highlight.
startCol - the start column of the interval to highlight.
endCol - the end column of the interval to highlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#unhighlightCell(DoubleMatrix, int, int, algoanim.util.Timing, algoanim.util.Timing)

unhighlightCellRowRange

public void unhighlightCellRowRange(DoubleMatrix intMatrix,
                                    int startRow,
                                    int endRow,
                                    int col,
                                    Timing offset,
                                    Timing duration)
Description copied from interface: DoubleMatrixGenerator
Unhighlights a range of array cells of an DoubleMatrix.

Specified by:
unhighlightCellRowRange in interface DoubleMatrixGenerator
startRow - the start row of the interval to highlight.
endRow - the end row of the interval to highlight.
col - the column of the interval to highlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#unhighlightCell(DoubleMatrix, int, int, algoanim.util.Timing, algoanim.util.Timing)

unhighlightElem

public void unhighlightElem(DoubleMatrix intMatrix,
                            int row,
                            int col,
                            Timing offset,
                            Timing duration)
Description copied from interface: DoubleMatrixGenerator
Unhighlights the array element of an DoubleMatrix at a given position after a distinct offset.

Specified by:
unhighlightElem in interface DoubleMatrixGenerator
Parameters:
intMatrix - the DoubleMatrix to work on.
row - the row of the element to unhighlight.
col - the column of the element to unhighlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#unhighlightElem(DoubleMatrix, int, int, algoanim.util.Timing, algoanim.util.Timing)

unhighlightElemColumnRange

public void unhighlightElemColumnRange(DoubleMatrix intMatrix,
                                       int row,
                                       int startCol,
                                       int endCol,
                                       Timing offset,
                                       Timing duration)
Description copied from interface: DoubleMatrixGenerator
Unhighlights a range of array elements of an DoubleMatrix.

Specified by:
unhighlightElemColumnRange in interface DoubleMatrixGenerator
Parameters:
intMatrix - the DoubleMatrix to work on.
row - the row of the interval to unhighlight.
startCol - the start of the column interval to unhighlight.
endCol - the end of the column interval to unhighlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#unhighlightElemColumnRange(DoubleMatrix, int, int, int, algoanim.util.Timing, algoanim.util.Timing)

unhighlightElemRowRange

public void unhighlightElemRowRange(DoubleMatrix intMatrix,
                                    int row,
                                    int startCol,
                                    int endCol,
                                    Timing offset,
                                    Timing duration)
Description copied from interface: DoubleMatrixGenerator
Unhighlights a range of array elements of an DoubleMatrix.

Specified by:
unhighlightElemRowRange in interface DoubleMatrixGenerator
Parameters:
intMatrix - the DoubleMatrix to work on.
row - the start row of the interval to unhighlight.
startCol - the end row of the interval to unhighlight.
endCol - the column interval to unhighlight.
offset - [optional] the offset after which the operation shall be started.
duration - [optional] the duration this operation lasts.
See Also:
#unhighlightElemRowRange(DoubleMatrix, int, int, int, algoanim.util.Timing, algoanim.util.Timing)