org.opensourcephysics.numerics
Class FunctionTransform

java.lang.Object
  extended by java.awt.geom.AffineTransform
      extended by org.opensourcephysics.numerics.FunctionTransform
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public final class FunctionTransform
extends java.awt.geom.AffineTransform

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.geom.AffineTransform
TYPE_FLIP, TYPE_GENERAL_ROTATION, TYPE_GENERAL_SCALE, TYPE_GENERAL_TRANSFORM, TYPE_IDENTITY, TYPE_MASK_ROTATION, TYPE_MASK_SCALE, TYPE_QUADRANT_ROTATION, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE
 
Constructor Summary
FunctionTransform()
          Constructor FunctionTransform
FunctionTransform(double m00, double m10, double m01, double m11, double m02, double m12)
          Constructor FunctionTransform
 
Method Summary
 void concatenate(java.awt.geom.AffineTransform Tx)
           
 java.awt.geom.AffineTransform createInverse()
           
 void deltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
           
 java.awt.geom.Point2D deltaTransform(java.awt.geom.Point2D ptSrc, java.awt.geom.Point2D ptDst)
           
 boolean equals(java.lang.Object obj)
           
 void inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
           
 java.awt.geom.Point2D inverseTransform(java.awt.geom.Point2D ptSrc, java.awt.geom.Point2D ptDst)
           
 void preConcatenate(java.awt.geom.AffineTransform Tx)
           
 void rotate(double theta)
           
 void rotate(double theta, double x, double y)
           
 void scale(double sx, double sy)
           
 void setApplyXFunction(boolean b)
           
 void setApplyYFunction(boolean b)
           
 void setToIdentity()
           
 void setToRotation(double theta)
           
 void setToRotation(double theta, double x, double y)
           
 void setToScale(double sx, double sy)
           
 void setToShear(double shx, double shy)
           
 void setToTranslation(double tx, double ty)
           
 void setTransform(java.awt.geom.AffineTransform Tx)
           
 void setTransform(double m00, double m10, double m01, double m11, double m02, double m12)
           
 void setXFunction(InvertibleFunction x)
           
 void setYFunction(InvertibleFunction y)
           
 void shear(double shx, double shy)
           
 void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
           
 void transform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
           
 void transform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
           
 void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
           
 void transform(java.awt.geom.Point2D[] ptSrc, int srcOff, java.awt.geom.Point2D[] ptDst, int dstOff, int numPts)
           
 java.awt.geom.Point2D transform(java.awt.geom.Point2D ptSrc, java.awt.geom.Point2D ptDst)
           
 void translate(double tx, double ty)
           
 
Methods inherited from class java.awt.geom.AffineTransform
clone, createTransformedShape, getDeterminant, getMatrix, getQuadrantRotateInstance, getQuadrantRotateInstance, getRotateInstance, getRotateInstance, getRotateInstance, getRotateInstance, getScaleInstance, getScaleX, getScaleY, getShearInstance, getShearX, getShearY, getTranslateInstance, getTranslateX, getTranslateY, getType, hashCode, invert, isIdentity, quadrantRotate, quadrantRotate, rotate, rotate, setToQuadrantRotation, setToQuadrantRotation, setToRotation, setToRotation, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionTransform

public FunctionTransform()
Constructor FunctionTransform


FunctionTransform

public FunctionTransform(double m00,
                         double m10,
                         double m01,
                         double m11,
                         double m02,
                         double m12)
Constructor FunctionTransform

Parameters:
m00 -
m10 -
m01 -
m11 -
m02 -
m12 -
Method Detail

setXFunction

public void setXFunction(InvertibleFunction x)

setYFunction

public void setYFunction(InvertibleFunction y)

setApplyXFunction

public void setApplyXFunction(boolean b)

setApplyYFunction

public void setApplyYFunction(boolean b)

translate

public void translate(double tx,
                      double ty)
Overrides:
translate in class java.awt.geom.AffineTransform

rotate

public void rotate(double theta)
Overrides:
rotate in class java.awt.geom.AffineTransform

rotate

public void rotate(double theta,
                   double x,
                   double y)
Overrides:
rotate in class java.awt.geom.AffineTransform

scale

public void scale(double sx,
                  double sy)
Overrides:
scale in class java.awt.geom.AffineTransform

shear

public void shear(double shx,
                  double shy)
Overrides:
shear in class java.awt.geom.AffineTransform

setToIdentity

public void setToIdentity()
Overrides:
setToIdentity in class java.awt.geom.AffineTransform

setToTranslation

public void setToTranslation(double tx,
                             double ty)
Overrides:
setToTranslation in class java.awt.geom.AffineTransform

setToRotation

public void setToRotation(double theta)
Overrides:
setToRotation in class java.awt.geom.AffineTransform

setToRotation

public void setToRotation(double theta,
                          double x,
                          double y)
Overrides:
setToRotation in class java.awt.geom.AffineTransform

setToScale

public void setToScale(double sx,
                       double sy)
Overrides:
setToScale in class java.awt.geom.AffineTransform

setToShear

public void setToShear(double shx,
                       double shy)
Overrides:
setToShear in class java.awt.geom.AffineTransform

setTransform

public void setTransform(java.awt.geom.AffineTransform Tx)
Overrides:
setTransform in class java.awt.geom.AffineTransform

setTransform

public void setTransform(double m00,
                         double m10,
                         double m01,
                         double m11,
                         double m02,
                         double m12)
Overrides:
setTransform in class java.awt.geom.AffineTransform

concatenate

public void concatenate(java.awt.geom.AffineTransform Tx)
Overrides:
concatenate in class java.awt.geom.AffineTransform

preConcatenate

public void preConcatenate(java.awt.geom.AffineTransform Tx)
Overrides:
preConcatenate in class java.awt.geom.AffineTransform

createInverse

public java.awt.geom.AffineTransform createInverse()
                                            throws java.awt.geom.NoninvertibleTransformException
Overrides:
createInverse in class java.awt.geom.AffineTransform
Throws:
java.awt.geom.NoninvertibleTransformException

transform

public java.awt.geom.Point2D transform(java.awt.geom.Point2D ptSrc,
                                       java.awt.geom.Point2D ptDst)
Overrides:
transform in class java.awt.geom.AffineTransform

transform

public void transform(java.awt.geom.Point2D[] ptSrc,
                      int srcOff,
                      java.awt.geom.Point2D[] ptDst,
                      int dstOff,
                      int numPts)
Overrides:
transform in class java.awt.geom.AffineTransform

transform

public void transform(float[] srcPts,
                      int srcOff,
                      float[] dstPts,
                      int dstOff,
                      int numPts)
Overrides:
transform in class java.awt.geom.AffineTransform

transform

public void transform(double[] srcPts,
                      int srcOff,
                      double[] dstPts,
                      int dstOff,
                      int numPts)
Overrides:
transform in class java.awt.geom.AffineTransform

transform

public void transform(float[] srcPts,
                      int srcOff,
                      double[] dstPts,
                      int dstOff,
                      int numPts)
Overrides:
transform in class java.awt.geom.AffineTransform

transform

public void transform(double[] srcPts,
                      int srcOff,
                      float[] dstPts,
                      int dstOff,
                      int numPts)
Overrides:
transform in class java.awt.geom.AffineTransform

inverseTransform

public java.awt.geom.Point2D inverseTransform(java.awt.geom.Point2D ptSrc,
                                              java.awt.geom.Point2D ptDst)
                                       throws java.awt.geom.NoninvertibleTransformException
Overrides:
inverseTransform in class java.awt.geom.AffineTransform
Throws:
java.awt.geom.NoninvertibleTransformException

inverseTransform

public void inverseTransform(double[] srcPts,
                             int srcOff,
                             double[] dstPts,
                             int dstOff,
                             int numPts)
                      throws java.awt.geom.NoninvertibleTransformException
Overrides:
inverseTransform in class java.awt.geom.AffineTransform
Throws:
java.awt.geom.NoninvertibleTransformException

deltaTransform

public java.awt.geom.Point2D deltaTransform(java.awt.geom.Point2D ptSrc,
                                            java.awt.geom.Point2D ptDst)
Overrides:
deltaTransform in class java.awt.geom.AffineTransform

deltaTransform

public void deltaTransform(double[] srcPts,
                           int srcOff,
                           double[] dstPts,
                           int dstOff,
                           int numPts)
Overrides:
deltaTransform in class java.awt.geom.AffineTransform

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.awt.geom.AffineTransform