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

public abstract Class BaseTransform

extends Object
implements CanTransformVec3d
Class Inheritance
All Implemented Interfaces
com.sun.javafx.geom.transform.CanTransformVec3d
Known Direct Subclasses
com.sun.javafx.geom.transform.Identity, com.sun.javafx.geom.transform.Translate2D, com.sun.javafx.geom.transform.AffineBase
Imports
com.sun.javafx.geom.BaseBounds, .Point2D, .Rectangle, .Shape, .Vec3d

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
pack-priv static final double
public static final BaseTransform
public static final int
public static final int
public static final int
TYPE_FLIP

This flag bit indicates that the transform defined by this object performs a mirror image flip about some axis which changes the normally right handed coordinate system into a left handed system in addition to the conversions indicated by other flag bits.

public static final int
TYPE_GENERAL_ROTATION

This flag bit indicates that the transform defined by this object performs a rotation by an arbitrary angle in addition to the conversions indicated by other flag bits.

public static final int
TYPE_GENERAL_SCALE

This flag bit indicates that the transform defined by this object performs a general scale in addition to the conversions indicated by other flag bits.

public static final int
TYPE_GENERAL_TRANSFORM

This constant indicates that the transform defined by this object performs an arbitrary conversion of the input coordinates.

public static final int
TYPE_IDENTITY

This constant indicates that the transform defined by this object is an identity transform.

public static final int
TYPE_MASK_ROTATION

This constant is a bit mask for any of the rotation flag bits.

public static final int
TYPE_MASK_SCALE

This constant is a bit mask for any of the scale flag bits.

public static final int
TYPE_QUADRANT_ROTATION

This flag bit indicates that the transform defined by this object performs a quadrant rotation by some multiple of 90 degrees in addition to the conversions indicated by other flag bits.

public static final int
TYPE_TRANSLATION

This flag bit indicates that the transform defined by this object performs a translation in addition to the conversions indicated by other flag bits.

public static final int
TYPE_UNIFORM_SCALE

This flag bit indicates that the transform defined by this object performs a uniform scale in addition to the conversions indicated by other flag bits.

protected static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
almostZero(double a)

public abstract BaseTransform
copy()

public abstract BaseTransform

Returns:

a new transform representing the inverse of this transform.
createInverse
()

This function always returns a new object, unless the transform is an identity transform in which case it might return the Identity singleton.

public abstract Shape
pack-priv static void
public abstract Vec3d
public abstract void
deltaTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)

public abstract void
deltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)

public abstract BaseTransform
deriveWithConcatenation(double mxx, double myx, double mxy, double myy, double mxt, double myt)

public abstract BaseTransform
deriveWithConcatenation(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)

public abstract BaseTransform
public abstract BaseTransform
public abstract BaseTransform
public abstract BaseTransform
deriveWithPreTranslation(double mxt, double myt)

public abstract BaseTransform
deriveWithRotation(double theta, double axisX, double axisY, double axisZ)

public abstract BaseTransform
deriveWithScale(double mxx, double myy, double mzz)

public abstract BaseTransform
deriveWithTranslation(double mxt, double myt)

public abstract BaseTransform
deriveWithTranslation(double mxt, double myt, double mzt)

public boolean

Returns:

true if obj equals this BaseTransform object; false otherwise.
equals
(Object
the Object to test for equality with this BaseTransform
obj
)

Overrides java.lang.Object.equals.

Returns true if this BaseTransform represents the same coordinate transform as the specified argument.

public abstract BaseTransform.Degree
public abstract double
public static BaseTransform
public static BaseTransform
getInstance(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)

public static BaseTransform
getInstance(double mxx, double myx, double mxy, double myy, double mxt, double myt)

public double
public double
public double
public double
public double
public double
public double
public double
public double
public double
public double
public double
public static BaseTransform
getRotateInstance(double theta, double x, double y)

public static BaseTransform
getScaleInstance(double mxx, double myy)

public static BaseTransform
getTranslateInstance(double mxt, double myt)

public abstract int

Returns:

the OR combination of any of the indicated flags that apply to this transform
getType
()

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

public int

Returns:

a hash code for this transform.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns the hashcode for this transform.

public abstract Vec3d
public abstract void
inverseDeltaTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)

public abstract Point2D
public abstract Vec3d
public abstract void
inverseTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)

public abstract void
inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)

public abstract BaseBounds
public abstract void
public abstract void
invert()

This function inverts the BaseTransform in place.

public abstract boolean
is2D()

public abstract boolean
public abstract boolean
pack-priv static Point2D
public abstract void
restoreTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt)

This function is only guaranteed to succeed if the transform is of degree AFFINE2D or less and the matrix parameters specified came from this same instance.

public abstract void
restoreTransform(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)

This function is only guaranteed to succeed if the matrix parameters specified came from this same instance.

public abstract void
public abstract void
public String

Returns:

the matrix elements and degree of this transform
toString
()

Overrides java.lang.Object.toString.

Returns the matrix elements and degree of this transform as a string.

public abstract Point2D
public abstract Vec3d
public abstract void
transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)

public abstract void
transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)

public abstract void
transform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)

public abstract void
transform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)

public abstract BaseBounds
public abstract void
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

EPSILON_ABSOLUTEback to summary
pack-priv static final double EPSILON_ABSOLUTE
IDENTITY_TRANSFORMback to summary
public static final BaseTransform IDENTITY_TRANSFORM
TYPE_AFFINE2D_MASKback to summary
public static final int TYPE_AFFINE2D_MASK
TYPE_AFFINE_3Dback to summary
public static final int TYPE_AFFINE_3D
TYPE_FLIPback to summary
public static final int TYPE_FLIP

This flag bit indicates that the transform defined by this object performs a mirror image flip about some axis which changes the normally right handed coordinate system into a left handed system in addition to the conversions indicated by other flag bits. A right handed coordinate system is one where the positive X axis rotates counterclockwise to overlay the positive Y axis similar to the direction that the fingers on your right hand curl when you stare end on at your thumb. A left handed coordinate system is one where the positive X axis rotates clockwise to overlay the positive Y axis similar to the direction that the fingers on your left hand curl. There is no mathematical way to determine the angle of the original flipping or mirroring transformation since all angles of flip are identical given an appropriate adjusting rotation.

See Also
TYPE_IDENTITY, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE, TYPE_GENERAL_SCALE, TYPE_QUADRANT_ROTATION, TYPE_GENERAL_ROTATION, TYPE_GENERAL_TRANSFORM, getType
TYPE_GENERAL_ROTATIONback to summary
public static final int TYPE_GENERAL_ROTATION

This flag bit indicates that the transform defined by this object performs a rotation by an arbitrary angle in addition to the conversions indicated by other flag bits. A rotation changes the angles of vectors by the same amount regardless of the original direction of the vector and without changing the length of the vector. This flag bit is mutually exclusive with the TYPE_QUADRANT_ROTATION flag.

See Also
TYPE_IDENTITY, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE, TYPE_GENERAL_SCALE, TYPE_FLIP, TYPE_QUADRANT_ROTATION, TYPE_GENERAL_TRANSFORM, getType
TYPE_GENERAL_SCALEback to summary
public static final int TYPE_GENERAL_SCALE

This flag bit indicates that the transform defined by this object performs a general scale in addition to the conversions indicated by other flag bits. A general scale multiplies the length of vectors by different amounts in the x and y directions without changing the angle between perpendicular vectors. This flag bit is mutually exclusive with the TYPE_UNIFORM_SCALE flag.

See Also
TYPE_IDENTITY, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE, TYPE_FLIP, TYPE_QUADRANT_ROTATION, TYPE_GENERAL_ROTATION, TYPE_GENERAL_TRANSFORM, getType
TYPE_GENERAL_TRANSFORMback to summary
public static final int TYPE_GENERAL_TRANSFORM

This constant indicates that the transform defined by this object performs an arbitrary conversion of the input coordinates. If this transform can be classified by any of the above constants, the type will either be the constant TYPE_IDENTITY or a combination of the appropriate flag bits for the various coordinate conversions that this transform performs.

See Also
TYPE_IDENTITY, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE, TYPE_GENERAL_SCALE, TYPE_FLIP, TYPE_QUADRANT_ROTATION, TYPE_GENERAL_ROTATION, getType
TYPE_IDENTITYback to summary
public static final int TYPE_IDENTITY

This constant indicates that the transform defined by this object is an identity transform. An identity transform is one in which the output coordinates are always the same as the input coordinates. If this transform is anything other than the identity transform, the type will either be the constant GENERAL_TRANSFORM or a combination of the appropriate flag bits for the various coordinate conversions that this transform performs.

See Also
TYPE_TRANSLATION, TYPE_UNIFORM_SCALE, TYPE_GENERAL_SCALE, TYPE_FLIP, TYPE_QUADRANT_ROTATION, TYPE_GENERAL_ROTATION, TYPE_GENERAL_TRANSFORM, getType
TYPE_MASK_ROTATIONback to summary
public static final int TYPE_MASK_ROTATION

This constant is a bit mask for any of the rotation flag bits.

See Also
TYPE_QUADRANT_ROTATION, TYPE_GENERAL_ROTATION
TYPE_MASK_SCALEback to summary
public static final int TYPE_MASK_SCALE

This constant is a bit mask for any of the scale flag bits.

See Also
TYPE_UNIFORM_SCALE, TYPE_GENERAL_SCALE
TYPE_QUADRANT_ROTATIONback to summary
public static final int TYPE_QUADRANT_ROTATION

This flag bit indicates that the transform defined by this object performs a quadrant rotation by some multiple of 90 degrees in addition to the conversions indicated by other flag bits. A rotation changes the angles of vectors by the same amount regardless of the original direction of the vector and without changing the length of the vector. This flag bit is mutually exclusive with the TYPE_GENERAL_ROTATION flag.

See Also
TYPE_IDENTITY, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE, TYPE_GENERAL_SCALE, TYPE_FLIP, TYPE_GENERAL_ROTATION, TYPE_GENERAL_TRANSFORM, getType
TYPE_TRANSLATIONback to summary
public static final int TYPE_TRANSLATION

This flag bit indicates that the transform defined by this object performs a translation in addition to the conversions indicated by other flag bits. A translation moves the coordinates by a constant amount in x and y without changing the length or angle of vectors.

See Also
TYPE_IDENTITY, TYPE_UNIFORM_SCALE, TYPE_GENERAL_SCALE, TYPE_FLIP, TYPE_QUADRANT_ROTATION, TYPE_GENERAL_ROTATION, TYPE_GENERAL_TRANSFORM, getType
TYPE_UNIFORM_SCALEback to summary
public static final int TYPE_UNIFORM_SCALE

This flag bit indicates that the transform defined by this object performs a uniform scale in addition to the conversions indicated by other flag bits. A uniform scale multiplies the length of vectors by the same amount in both the x and y directions without changing the angle between vectors. This flag bit is mutually exclusive with the TYPE_GENERAL_SCALE flag.

See Also
TYPE_IDENTITY, TYPE_TRANSLATION, TYPE_GENERAL_SCALE, TYPE_FLIP, TYPE_QUADRANT_ROTATION, TYPE_GENERAL_ROTATION, TYPE_GENERAL_TRANSFORM, getType
TYPE_UNKNOWNback to summary
protected static final int TYPE_UNKNOWN

Constructor Detail

BaseTransformback to summary
public BaseTransform()

Method Detail

almostZeroback to summary
public static boolean almostZero(double a)
copyback to summary
public abstract BaseTransform copy()
createInverseback to summary
public abstract BaseTransform createInverse() throws NoninvertibleTransformException

This function always returns a new object, unless the transform is an identity transform in which case it might return the Identity singleton.

Returns:BaseTransform

a new transform representing the inverse of this transform.

createTransformedShapeback to summary
public abstract Shape createTransformedShape(Shape s)
degreeErrorback to summary
pack-priv static void degreeError(BaseTransform.Degree maxSupported)
deltaTransformback to summary
public abstract Vec3d deltaTransform(Vec3d src, Vec3d dst)
deltaTransformback to summary
public abstract void deltaTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
deltaTransformback to summary
public abstract void deltaTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
deriveWithConcatenationback to summary
public abstract BaseTransform deriveWithConcatenation(double mxx, double myx, double mxy, double myy, double mxt, double myt)
deriveWithConcatenationback to summary
public abstract BaseTransform deriveWithConcatenation(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)
deriveWithConcatenationback to summary
public abstract BaseTransform deriveWithConcatenation(BaseTransform tx)
deriveWithNewTransformback to summary
public abstract BaseTransform deriveWithNewTransform(BaseTransform tx)
deriveWithPreConcatenationback to summary
public abstract BaseTransform deriveWithPreConcatenation(BaseTransform transform)
deriveWithPreTranslationback to summary
public abstract BaseTransform deriveWithPreTranslation(double mxt, double myt)
deriveWithRotationback to summary
public abstract BaseTransform deriveWithRotation(double theta, double axisX, double axisY, double axisZ)
deriveWithScaleback to summary
public abstract BaseTransform deriveWithScale(double mxx, double myy, double mzz)
deriveWithTranslationback to summary
public abstract BaseTransform deriveWithTranslation(double mxt, double myt)
deriveWithTranslationback to summary
public abstract BaseTransform deriveWithTranslation(double mxt, double myt, double mzt)
equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Returns true if this BaseTransform represents the same coordinate transform as the specified argument.

Parameters
obj:Object

the Object to test for equality with this BaseTransform

Returns:boolean

true if obj equals this BaseTransform object; false otherwise.

Annotations
@Override
getDegreeback to summary
public abstract BaseTransform.Degree getDegree()
getDeterminantback to summary
public abstract double getDeterminant()
getInstanceback to summary
public static BaseTransform getInstance(BaseTransform tx)
getInstanceback to summary
public static BaseTransform getInstance(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)
getInstanceback to summary
public static BaseTransform getInstance(double mxx, double myx, double mxy, double myy, double mxt, double myt)
getMxtback to summary
public double getMxt()
getMxxback to summary
public double getMxx()
getMxyback to summary
public double getMxy()
getMxzback to summary
public double getMxz()
getMytback to summary
public double getMyt()
getMyxback to summary
public double getMyx()
getMyyback to summary
public double getMyy()
getMyzback to summary
public double getMyz()
getMztback to summary
public double getMzt()
getMzxback to summary
public double getMzx()
getMzyback to summary
public double getMzy()
getMzzback to summary
public double getMzz()
getRotateInstanceback to summary
public static BaseTransform getRotateInstance(double theta, double x, double y)
getScaleInstanceback to summary
public static BaseTransform getScaleInstance(double mxx, double myy)
getTranslateInstanceback to summary
public static BaseTransform getTranslateInstance(double mxt, double myt)
getTypeback to summary
public abstract int getType()

Retrieves the flag bits describing the conversion properties of this transform. The return value is either one of the constants TYPE_IDENTITY or TYPE_GENERAL_TRANSFORM, or a combination of the appriopriate flag bits. A valid combination of flag bits is an exclusive OR operation that can combine the TYPE_TRANSLATION flag bit in addition to either of the TYPE_UNIFORM_SCALE or TYPE_GENERAL_SCALE flag bits as well as either of the TYPE_QUADRANT_ROTATION or TYPE_GENERAL_ROTATION flag bits.

Returns:int

the OR combination of any of the indicated flags that apply to this transform

See Also
TYPE_IDENTITY, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE, TYPE_GENERAL_SCALE, TYPE_QUADRANT_ROTATION, TYPE_GENERAL_ROTATION, TYPE_GENERAL_TRANSFORM
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns the hashcode for this transform.

Returns:int

a hash code for this transform.

Annotations
@Override
inverseDeltaTransformback to summary
public abstract Vec3d inverseDeltaTransform(Vec3d src, Vec3d dst) throws NoninvertibleTransformException
inverseDeltaTransformback to summary
public abstract void inverseDeltaTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws NoninvertibleTransformException
inverseTransformback to summary
public abstract Point2D inverseTransform(Point2D src, Point2D dst) throws NoninvertibleTransformException
inverseTransformback to summary
public abstract Vec3d inverseTransform(Vec3d src, Vec3d dst) throws NoninvertibleTransformException
inverseTransformback to summary
public abstract void inverseTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws NoninvertibleTransformException
inverseTransformback to summary
public abstract void inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws NoninvertibleTransformException
inverseTransformback to summary
public abstract BaseBounds inverseTransform(BaseBounds bounds, BaseBounds result) throws NoninvertibleTransformException
inverseTransformback to summary
public abstract void inverseTransform(Rectangle rect, Rectangle result) throws NoninvertibleTransformException
invertback to summary
public abstract void invert() throws NoninvertibleTransformException

This function inverts the BaseTransform in place. All current implementations can support their own inverted form, and that should likely remain true in the future as well.

is2Dback to summary
public abstract boolean is2D()
isIdentityback to summary
public abstract boolean isIdentity()
isTranslateOrIdentityback to summary
public abstract boolean isTranslateOrIdentity()
makePointback to summary
pack-priv static Point2D makePoint(Point2D src, Point2D dst)
restoreTransformback to summary
public abstract void restoreTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt)

This function is only guaranteed to succeed if the transform is of degree AFFINE2D or less and the matrix parameters specified came from this same instance. In practice, they will also tend to succeed if they specify a transform of Degree less than or equal to the Degree of this instance as well, but the intent of this method is to restore the transform that had been read out of this transform into local variables.

restoreTransformback to summary
public abstract void restoreTransform(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)

This function is only guaranteed to succeed if the matrix parameters specified came from this same instance. In practice, they will also tend to succeed if they specify a transform of Degree less than or equal to the Degree of this instance as well, but the intent of this method is to restore the transform that had been read out of this transform into local variables.

setToIdentityback to summary
public abstract void setToIdentity()
setTransformback to summary
public abstract void setTransform(BaseTransform xform)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the matrix elements and degree of this transform as a string.

Returns:String

the matrix elements and degree of this transform

Annotations
@Override
transformback to summary
public abstract Point2D transform(Point2D src, Point2D dst)
transformback to summary
public abstract Vec3d transform(Vec3d src, Vec3d dst)

Redeclares com.sun.javafx.geom.transform.CanTransformVec3d.transform.

Annotations
@Override
transformback to summary
public abstract void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
transformback to summary
public abstract void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
transformback to summary
public abstract void transform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
transformback to summary
public abstract void transform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
transformback to summary
public abstract BaseBounds transform(BaseBounds bounds, BaseBounds result)
transformback to summary
public abstract void transform(Rectangle rect, Rectangle result)
com.sun.javafx.geom.transform back to summary

public final Enum BaseTransform.Degree

extends Enum<BaseTransform.Degree>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final BaseTransform.Degree
public static final BaseTransform.Degree
public static final BaseTransform.Degree
public static final BaseTransform.Degree
public static final BaseTransform.Degree

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BaseTransform.Degree
public static BaseTransform.Degree[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AFFINE_2Dback to summary
public static final BaseTransform.Degree AFFINE_2D
AFFINE_3Dback to summary
public static final BaseTransform.Degree AFFINE_3D
IDENTITYback to summary
public static final BaseTransform.Degree IDENTITY
TRANSLATE_2Dback to summary
public static final BaseTransform.Degree TRANSLATE_2D
TRANSLATE_3Dback to summary
public static final BaseTransform.Degree TRANSLATE_3D

Constructor Detail

Degreeback to summary
private Degree()

Method Detail

valueOfback to summary
public static BaseTransform.Degree valueOf(String name)
valuesback to summary
public static BaseTransform.Degree[] values()