algoanim.primitives
Class MatrixPrimitive

java.lang.Object
  extended by algoanim.primitives.Primitive
      extended by algoanim.primitives.MatrixPrimitive
Direct Known Subclasses:
DoubleMatrix, IntMatrix, StringMatrix

public abstract class MatrixPrimitive
extends Primitive

Base class for all concrete arrays.

Author:
Jens Pfau, Stephan Mehlhase

Field Summary
protected  int nrCols
           
protected  int nrRows
           
 
Fields inherited from class algoanim.primitives.Primitive
gen
 
Constructor Summary
MatrixPrimitive(GeneratorInterface g, DisplayOptions display)
           
 
Method Summary
 int getNrCols()
          Returns the number of columns in row row of the internal matrix.
 int getNrRows()
          Returns the number of rows of the internal matrix.
 
Methods inherited from class algoanim.primitives.Primitive
changeColor, exchange, getDisplayOptions, getName, hide, hide, moveBy, moveTo, moveVia, rotate, rotate, setName, show, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nrRows

protected int nrRows

nrCols

protected int nrCols
Constructor Detail

MatrixPrimitive

public MatrixPrimitive(GeneratorInterface g,
                       DisplayOptions display)
Parameters:
g - the appropriate code Generator.
display - [optional] the DisplayOptions of this ArrayPrimitive.
Method Detail

getNrRows

public int getNrRows()
Returns the number of rows of the internal matrix.

Returns:
the number of rows of the internal array.

getNrCols

public int getNrCols()
Returns the number of columns in row row of the internal matrix.

Returns:
the number of columns in row row of the internal array.