| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| protected static final int | |
| protected static final int | APPLY_3D
This constant is used for the internal state variable to indicate that the 3D (Z) components of the matrix (m*z and mz*) need to be factored in to complete the transformation equation of this transform. |
| protected static final int | APPLY_IDENTITY
This constant is used for the internal state variable to indicate that no calculations need to be performed and that the source coordinates only need to be copied to their destinations to complete the transformation equation of this transform. |
| protected static final int | APPLY_SCALE
This constant is used for the internal state variable to indicate that the scaling components of the matrix (m00 and m11) need to be factored in to complete the transformation equation of this transform. |
| protected static final int | APPLY_SHEAR
This constant is used for the internal state variable to indicate that the shearing components of the matrix (m01 and m10) need to be factored in to complete the transformation equation of this transform. |
| protected static final int | APPLY_TRANSLATE
This constant is used for the internal state variable to indicate that the translation components of the matrix (m02 and m12) need to be added to complete the transformation equation of this transform. |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected double | mxt
The X coordinate of the translation element of the 3x3 affine transformation matrix. |
| protected double | mxx
The X coordinate scaling element of the 3x3 affine transformation matrix. |
| protected double | mxy
The X coordinate shearing element of the 3x3 affine transformation matrix. |
| protected double | myt
The Y coordinate of the translation element of the 3x3 affine transformation matrix. |
| protected double | myx
The Y coordinate shearing element of the 3x3 affine transformation matrix. |
| protected double | myy
The Y coordinate scaling element of the 3x3 affine transformation matrix. |
| private static final int[] | |
| protected transient int | state
This field keeps track of which components of the matrix need to be applied when performing a transformation. |
| protected transient int | type
This field caches the current transformation type of the matrix. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| public void | concatenate(BaseTransform
the Tx)BaseTransform object to be
concatenated with this Affine2D object.Concatenates a |
| public void | concatenate(double Txx, double Txy, double Txt, double Tyx, double Tyy, double Tyt)
Similar to |
| public Shape | Returns: a newShape object that defines the geometry
of the transformed Shape, or null if pSrc is null.Implements abstract com. Returns a new |
| public Vec3d | Returns: thedst vector after transforming
src and storing the result in dst.the specified src, Vec3d Vec3d to be transformedthe specified dst)Vec3d that stores the
result of transforming srcImplements abstract com. Transforms the specified |
| public void | deltaTransform(float[]
the array containing the source distance vectors.
Each vector is stored as a pair of relative x, y coordinates. srcPts, int the offset to the first vector to be transformed
in the source array srcOff, float[] the array into which the transformed distance vectors
are returned. Each vector is stored as a pair of relative
x, y coordinates. dstPts, int the offset to the location of the first
transformed vector that is stored in the destination array dstOff, int the number of vector coordinate pairs to be
transformed numPts)Implements abstract com. Transforms an array of relative distance vectors by this transform. |
| public void | deltaTransform(double[]
the array containing the source distance vectors.
Each vector is stored as a pair of relative x, y coordinates. srcPts, int the offset to the first vector to be transformed
in the source array srcOff, double[] the array into which the transformed distance vectors
are returned. Each vector is stored as a pair of relative
x, y coordinates. dstPts, int the offset to the location of the first
transformed vector that is stored in the destination array dstOff, int the number of vector coordinate pairs to be
transformed numPts)Implements abstract com. Transforms an array of relative distance vectors by this transform. |
| private void | doInverseTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts, int thestate)
Inverse transforms an array of single precision coordinates by this transform using the specified state type. |
| private void | |
| private void | |
| public double | Returns: the determinant of the matrix used to transform the coordinates.Implements abstract com. Returns the determinant of the matrix representation of the transform. |
| public double | Returns: a double value that is the X coordinate of the translation element of the affine transformation matrix.Overrides com. Returns the X coordinate of the translation element (mxt) of the 3x3 affine transformation matrix. |
| public double | Returns: a double value that is the X coordinate of the scaling element of the affine transformation matrix.Overrides com. Returns the X coordinate scaling element (mxx) of the 3x3 affine transformation matrix. |
| public double | Returns: a double value that is the X coordinate of the shearing element of the affine transformation matrix.Overrides com. Returns the X coordinate shearing element (mxy) of the 3x3 affine transformation matrix. |
| public double | Returns: a double value that is the Y coordinate of the translation element of the affine transformation matrix.Overrides com. Returns the Y coordinate of the translation element (myt) of the 3x3 affine transformation matrix. |
| public double | Returns: a double value that is the Y coordinate of the shearing element of the affine transformation matrix.Overrides com. Returns the Y coordinate shearing element (myx) of the 3x3 affine transformation matrix. |
| public double | Returns: a double value that is the Y coordinate of the scaling element of the affine transformation matrix.Overrides com. Returns the Y coordinate scaling element (myy) of the 3x3 affine transformation matrix. |
| public int | getType()
Implements abstract com. Retrieves the flag bits describing the conversion properties of this transform. |
| public Vec3d | Returns: dst, which contains the result of the
inverse transform.the vector to be inverse transformed src, Vec3d the resulting transformed vector dst)Implements abstract com. Inverse transforms the specified |
| public void | inverseDeltaTransform(float[]
the array containing the relative source coordinates.
Each point is stored as a pair of x, y coordinates. srcPts, int the offset to the first point to be transformed
in the source array srcOff, float[] the array into which the relative transformed point
coordinates are returned. Each point is stored as a pair of
x, y coordinates. dstPts, int the offset to the location of the first
transformed point that is stored in the destination array dstOff, int the number of point objects to be transformed numPts)Implements abstract com. Inverse transforms an array of single precision relative coordinates by this transform. |
| public Point2D | Returns: ptDst, which contains the result of the
inverse transform.the point to be inverse transformed ptSrc, Point2D the resulting transformed point ptDst)Implements abstract com. Inverse transforms the specified |
| public Vec3d | Returns: dst, which contains the result of the
inverse transform.the point to be inverse transformed src, Vec3d the resulting transformed point dst)Implements abstract com. Inverse transforms the specified |
| public BaseBounds | inverseTransform(BaseBounds src, BaseBounds dst)
Implements abstract com.
|
| public void | inverseTransform(Rectangle src, Rectangle dst)
Implements abstract com.
|
| public void | inverseTransform(float[]
the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates. srcPts, int the offset to the first point to be transformed
in the source array srcOff, float[] the array into which the transformed point
coordinates are returned. Each point is stored as a pair of
x, y coordinates. dstPts, int the offset to the location of the first
transformed point that is stored in the destination array dstOff, int the number of point objects to be transformed numPts)Implements abstract com. Inverse transforms an array of single precision coordinates by this transform. |
| public void | inverseTransform(double[]
the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates. srcPts, int the offset to the first point to be transformed
in the source array srcOff, double[] the array into which the transformed point
coordinates are returned. Each point is stored as a pair of
x, y coordinates. dstPts, int the offset to the location of the first
transformed point that is stored in the destination array dstOff, int the number of point objects to be transformed numPts)Implements abstract com. Inverse transforms an array of double precision coordinates by this transform. |
| private BaseBounds | |
| private BaseBounds | |
| public void | invert()
Implements abstract com. Sets this transform to the inverse of itself. |
| public boolean | |
| public boolean | Returns: true if this Affine2D is
an identity transform; false otherwise.Implements abstract com. Returns |
| public boolean | isTranslateOrIdentity()
Implements abstract com.
|
| protected abstract void | reset3Delements()
Resets the 3D (Z) components of the matrix to identity settings (if they are present). |
| public void | rotate(double
the angle of rotation measured in radians theta)Concatenates this transform with a rotation transformation. |
| protected final void | |
| protected final void | |
| protected final void | |
| public void | scale(double
the factor by which coordinates are scaled along the
X axis direction sx, double the factor by which coordinates are scaled along the
Y axis direction sy)Concatenates this transform with a scaling transformation. |
| public void | setToIdentity()
Implements abstract com. Resets this transform to the Identity transform. |
| public void | setToShear(double
the multiplier by which coordinates are shifted in the
direction of the positive X axis as a factor of their Y coordinate shx, double the multiplier by which coordinates are shifted in the
direction of the positive Y axis as a factor of their X coordinate shy)Sets this transform to a shearing transformation. |
| public void | setTransform(double
the X coordinate scaling element of the 3x3 matrix mxx, double the Y coordinate shearing element of the 3x3 matrix myx, double the X coordinate shearing element of the 3x3 matrix mxy, double the Y coordinate scaling element of the 3x3 matrix myy, double the X coordinate translation element of the 3x3 matrix mxt, double the Y coordinate translation element of the 3x3 matrix myt)Sets this transform to the matrix specified by the 6 double precision values. |
| public void | shear(double
the multiplier by which coordinates are shifted in the
direction of the positive X axis as a factor of their Y coordinate shx, double the multiplier by which coordinates are shifted in the
direction of the positive Y axis as a factor of their X coordinate shy)Concatenates this transform with a shearing transformation. |
| protected static void | |
| public Point2D | |
| public Point2D | Returns: theptDst after transforming
ptSrc and stroring the result in ptDst.the specified ptSrc, Point2D Point2D to be transformedthe specified ptDst)Point2D that stores the
result of transforming ptSrcImplements abstract com. Transforms the specified |
| public Vec3d | transform(Vec3d src, Vec3d dst)
Implements abstract com. Implements com.
|
| public BaseBounds | transform(BaseBounds src, BaseBounds dst)
Implements abstract com.
|
| public void | transform(Rectangle src, Rectangle dst)
Implements abstract com.
|
| public void | transform(float[]
the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates. srcPts, int the offset to the first point to be transformed
in the source array srcOff, float[] the array into which the transformed point coordinates
are returned. Each point is stored as a pair of x, y
coordinates. dstPts, int the offset to the location of the first
transformed point that is stored in the destination array dstOff, int the number of points to be transformed numPts)Implements abstract com. Transforms an array of floating point coordinates by this transform. |
| public void | transform(double[]
the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates. srcPts, int the offset to the first point to be transformed
in the source array srcOff, double[] the array into which the transformed point
coordinates are returned. Each point is stored as a pair of
x, y coordinates. dstPts, int the offset to the location of the first
transformed point that is stored in the destination array dstOff, int the number of point objects to be transformed numPts)Implements abstract com. Transforms an array of double precision coordinates by this transform. |
| public void | transform(float[]
the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates. srcPts, int the offset to the first point to be transformed
in the source array srcOff, double[] the array into which the transformed point coordinates
are returned. Each point is stored as a pair of x, y
coordinates. dstPts, int the offset to the location of the first
transformed point that is stored in the destination array dstOff, int the number of points to be transformed numPts)Implements abstract com. Transforms an array of floating point coordinates by this transform and stores the results into an array of doubles. |
| public void | transform(double[]
the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates. srcPts, int the offset to the first point to be transformed
in the source array srcOff, float[] the array into which the transformed point
coordinates are returned. Each point is stored as a pair of
x, y coordinates. dstPts, int the offset to the location of the first
transformed point that is stored in the destination array dstOff, int the number of point objects to be transformed numPts)Implements abstract com. Transforms an array of double precision coordinates by this transform and stores the results into an array of floats. |
| private BaseBounds | |
| private BaseBounds | |
| public void | translate(double
the distance by which coordinates are translated in the
X axis direction tx, double the distance by which coordinates are translated in the
Y axis direction ty)Concatenates this transform with a translation transformation. |
| protected void | updateState()
Manually recalculates the state of the transform when the matrix changes too much to predict the effects on the state. |
| protected void |