APIdia Launch Partner
Top Fields Constructors Methods
com.sun.javafx.geom.transform

public abstract Class AffineBase

extends BaseTransform
Class Inheritance
Known Direct Subclasses
com.sun.javafx.geom.transform.Affine2D, com.sun.javafx.geom.transform.Affine3D
Imports
com.sun.javafx.geom.BaseBounds, .Path2D, .Point2D, .RectBounds, .Rectangle, .Shape, .Vec3d

Field Summary

Modifier and TypeField 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.

Inherited from com.sun.javafx.geom.transform.BaseTransform:
EPSILON_ABSOLUTEIDENTITY_TRANSFORMTYPE_AFFINE2D_MASKTYPE_AFFINE_3DTYPE_FLIPTYPE_GENERAL_ROTATIONTYPE_GENERAL_SCALETYPE_GENERAL_TRANSFORMTYPE_IDENTITYTYPE_MASK_ROTATIONTYPE_MASK_SCALETYPE_QUADRANT_ROTATIONTYPE_TRANSLATIONTYPE_UNIFORM_SCALETYPE_UNKNOWN

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected int
public void
concatenate(BaseTransform
the BaseTransform object to be concatenated with this Affine2D object.
Tx
)

Concatenates a BaseTransform Tx to this Affine2D Cx in the most commonly useful way to provide a new user space that is mapped to the former user space by Tx.

public void
concatenate(double Txx, double Txy, double Txt, double Tyx, double Tyy, double Tyt)

Similar to concatenate(com.sun.javafx.geom.transform.BaseTransform), passing the individual elements of the transformation.

public Shape

Returns:

a new Shape object that defines the geometry of the transformed Shape, or null if pSrc is null.
createTransformedShape
(Shape s)

Implements abstract com.sun.javafx.geom.transform.BaseTransform.createTransformedShape.

Returns a new Shape object defined by the geometry of the specified Shape after it has been transformed by this transform.

public Vec3d

Returns:

the dst vector after transforming src and storing the result in dst.
deltaTransform
(Vec3d
the specified Vec3d to be transformed
src
,
Vec3d
the specified Vec3d that stores the result of transforming src
dst
)

Implements abstract com.sun.javafx.geom.transform.BaseTransform.deltaTransform.

Transforms the specified src vector and stores the result in dst vector, without applying the translation elements.

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.sun.javafx.geom.transform.BaseTransform.deltaTransform.

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.sun.javafx.geom.transform.BaseTransform.deltaTransform.

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
doTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts, int thestate)

private void
doTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts, int thestate)

public double

Returns:

the determinant of the matrix used to transform the coordinates.
getDeterminant
()

Implements abstract com.sun.javafx.geom.transform.BaseTransform.getDeterminant.

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.
getMxt
()

Overrides com.sun.javafx.geom.transform.BaseTransform.getMxt.

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.
getMxx
()

Overrides com.sun.javafx.geom.transform.BaseTransform.getMxx.

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.
getMxy
()

Overrides com.sun.javafx.geom.transform.BaseTransform.getMxy.

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.
getMyt
()

Overrides com.sun.javafx.geom.transform.BaseTransform.getMyt.

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.
getMyx
()

Overrides com.sun.javafx.geom.transform.BaseTransform.getMyx.

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.
getMyy
()

Overrides com.sun.javafx.geom.transform.BaseTransform.getMyy.

Returns the Y coordinate scaling element (myy) of the 3x3 affine transformation matrix.

public int
getType()

Implements abstract com.sun.javafx.geom.transform.BaseTransform.getType.

Retrieves the flag bits describing the conversion properties of this transform.

public Vec3d

Returns:

dst, which contains the result of the inverse transform.
inverseDeltaTransform
(Vec3d
the vector to be inverse transformed
src
,
Vec3d
the resulting transformed vector
dst
)

Implements abstract com.sun.javafx.geom.transform.BaseTransform.inverseDeltaTransform.

Inverse transforms the specified src vector and stores the result in dst vector (without applying the translation elements).

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.sun.javafx.geom.transform.BaseTransform.inverseDeltaTransform.

Inverse transforms an array of single precision relative coordinates by this transform.

public Point2D

Returns:

ptDst, which contains the result of the inverse transform.
inverseTransform
(Point2D
the point to be inverse transformed
ptSrc
,
Point2D
the resulting transformed point
ptDst
)

Implements abstract com.sun.javafx.geom.transform.BaseTransform.inverseTransform.

Inverse transforms the specified ptSrc and stores the result in ptDst.

public Vec3d

Returns:

dst, which contains the result of the inverse transform.
inverseTransform
(Vec3d
the point to be inverse transformed
src
,
Vec3d
the resulting transformed point
dst
)

Implements abstract com.sun.javafx.geom.transform.BaseTransform.inverseTransform.

Inverse transforms the specified src and stores the result in dst.

public BaseBounds
public void
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.sun.javafx.geom.transform.BaseTransform.inverseTransform.

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.sun.javafx.geom.transform.BaseTransform.inverseTransform.

Inverse transforms an array of double precision coordinates by this transform.

private BaseBounds
private BaseBounds
public void
invert()

Implements abstract com.sun.javafx.geom.transform.BaseTransform.invert.

Sets this transform to the inverse of itself.

public boolean
public boolean

Returns:

true if this Affine2D is an identity transform; false otherwise.
isIdentity
()

Implements abstract com.sun.javafx.geom.transform.BaseTransform.isIdentity.

Returns true if this Affine2D is an identity transform.

public boolean
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.sun.javafx.geom.transform.BaseTransform.setToIdentity.

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:

the ptDst after transforming ptSrc and stroring the result in ptDst.
transform
(Point2D
the specified Point2D to be transformed
ptSrc
,
Point2D
the specified Point2D that stores the result of transforming ptSrc
ptDst
)

Implements abstract com.sun.javafx.geom.transform.BaseTransform.transform.

Transforms the specified ptSrc and stores the result in ptDst.

public Vec3d
public BaseBounds
public void
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.sun.javafx.geom.transform.BaseTransform.transform.

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.sun.javafx.geom.transform.BaseTransform.transform.

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.sun.javafx.geom.transform.BaseTransform.transform.

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.sun.javafx.geom.transform.BaseTransform.transform.

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
Inherited from com.sun.javafx.geom.transform.BaseTransform:
almostZerocopycreateInversedegreeErrorderiveWithConcatenationderiveWithConcatenationderiveWithConcatenationderiveWithNewTransformderiveWithPreConcatenationderiveWithPreTranslationderiveWithRotationderiveWithScalederiveWithTranslationderiveWithTranslationequalsgetDegreegetInstancegetInstancegetInstancegetMxzgetMyzgetMztgetMzxgetMzygetMzzgetRotateInstancegetScaleInstancegetTranslateInstancehashCodemakePointrestoreTransformrestoreTransformsetTransformtoString