org.opensourcephysics.media.core
Class TransformArray

java.lang.Object
  extended by org.opensourcephysics.media.core.TransformArray

public class TransformArray
extends java.lang.Object

This manages an AffineTransform array. Every array element is guaranteed to be non-null.

Version:
1.0
Author:
Douglas Brown

Constructor Summary
TransformArray(int initialLength)
          Constructs a TransformArray object.
 
Method Summary
 java.awt.geom.AffineTransform get(int n)
          Gets the specified transform array element.
 void setLength(int newLength)
          Sets the length of the transform array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformArray

public TransformArray(int initialLength)
Constructs a TransformArray object.

Parameters:
initialLength - the initial length of the array
Method Detail

get

public java.awt.geom.AffineTransform get(int n)
Gets the specified transform array element.

Parameters:
n - the array index
Returns:
the transform at the specified index

setLength

public void setLength(int newLength)
Sets the length of the transform array.

Parameters:
newLength - the new length of the array