Java java.awt.geom AffineTransform fields, constructors, methods, implement or subclass

Example usage for Java java.awt.geom AffineTransform fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.geom AffineTransform.

The text is from its open source code.

Field

intTYPE_IDENTITY
This constant indicates that the transform defined by this object is an identity transform.
intTYPE_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.
intTYPE_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.
intTYPE_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.

Constructor

AffineTransform()
Constructs a new AffineTransform representing the Identity transformation.
AffineTransform(float m00, float m10, float m01, float m11, float m02, float m12)
Constructs a new AffineTransform from 6 floating point values representing the 6 specifiable entries of the 3x3 transformation matrix.
AffineTransform(double m00, double m10, double m01, double m11, double m02, double m12)
Constructs a new AffineTransform from 6 double precision values representing the 6 specifiable entries of the 3x3 transformation matrix.
AffineTransform(AffineTransform Tx)
Constructs a new AffineTransform that is a copy of the specified AffineTransform object.
AffineTransform(float[] flatmatrix)
Constructs a new AffineTransform from an array of floating point values representing either the 4 non-translation entries or the 6 specifiable entries of the 3x3 transformation matrix.
AffineTransform(double[] flatmatrix)
Constructs a new AffineTransform from an array of double precision values representing either the 4 non-translation entries or the 6 specifiable entries of the 3x3 transformation matrix.

Method

Objectclone()
Returns a copy of this AffineTransform object.
voidconcatenate(AffineTransform Tx)
Concatenates an AffineTransform Tx to this AffineTransform Cx in the most commonly useful way to provide a new user space that is mapped to the former user space by Tx .
AffineTransformcreateInverse()
Returns an AffineTransform object representing the inverse transformation.
ShapecreateTransformedShape(Shape pSrc)
Returns a new Shape object defined by the geometry of the specified Shape after it has been transformed by this transform.
doublegetDeterminant()
Returns the determinant of the matrix representation of the transform.
voidgetMatrix(double[] flatmatrix)
Retrieves the 6 specifiable values in the 3x3 affine transformation matrix and places them into an array of double precisions values.
AffineTransformgetQuadrantRotateInstance(int numquadrants)
Returns a transform that rotates coordinates by the specified number of quadrants.
AffineTransformgetQuadrantRotateInstance(int numquadrants, double anchorx, double anchory)
Returns a transform that rotates coordinates by the specified number of quadrants around the specified anchor point.
AffineTransformgetRotateInstance(double theta)
Returns a transform representing a rotation transformation.
AffineTransformgetRotateInstance(double theta, double anchorx, double anchory)
Returns a transform that rotates coordinates around an anchor point.
AffineTransformgetRotateInstance(double vecx, double vecy)
Returns a transform that rotates coordinates according to a rotation vector.
AffineTransformgetRotateInstance(double vecx, double vecy, double anchorx, double anchory)
Returns a transform that rotates coordinates around an anchor point according to a rotation vector.
AffineTransformgetScaleInstance(double sx, double sy)
Returns a transform representing a scaling transformation.
doublegetScaleX()
Returns the m00 element of the 3x3 affine transformation matrix.
doublegetScaleY()
Returns the m11 element of the 3x3 affine transformation matrix.
AffineTransformgetShearInstance(double shx, double shy)
Returns a transform representing a shearing transformation.
doublegetShearX()
Returns the X coordinate shearing element (m01) of the 3x3 affine transformation matrix.
doublegetShearY()
Returns the Y coordinate shearing element (m10) of the 3x3 affine transformation matrix.
AffineTransformgetTranslateInstance(double tx, double ty)
Returns a transform representing a translation transformation.
doublegetTranslateX()
Returns the X coordinate of the translation element (m02) of the 3x3 affine transformation matrix.
doublegetTranslateY()
Returns the Y coordinate of the translation element (m12) of the 3x3 affine transformation matrix.
intgetType()
Retrieves the flag bits describing the conversion properties of this transform.
Point2DinverseTransform(Point2D ptSrc, Point2D ptDst)
Inverse transforms the specified ptSrc and stores the result in ptDst .
voidinverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
Inverse transforms an array of double precision coordinates by this transform.
booleanisIdentity()
Returns true if this AffineTransform is an identity transform.
voidpreConcatenate(AffineTransform Tx)
Concatenates an AffineTransform Tx to this AffineTransform Cx in a less commonly used way such that Tx modifies the coordinate transformation relative to the absolute pixel space rather than relative to the existing user space.
voidquadrantRotate(int numquadrants)
Concatenates this transform with a transform that rotates coordinates by the specified number of quadrants.
voidrotate(double theta)
Concatenates this transform with a rotation transformation.
voidrotate(double theta, double anchorx, double anchory)
Concatenates this transform with a transform that rotates coordinates around an anchor point.
voidrotate(double vecx, double vecy, double anchorx, double anchory)
Concatenates this transform with a transform that rotates coordinates around an anchor point according to a rotation vector.
voidrotate(double vecx, double vecy)
Concatenates this transform with a transform that rotates coordinates according to a rotation vector.
voidscale(double sx, double sy)
Concatenates this transform with a scaling transformation.
voidsetToIdentity()
Resets this transform to the Identity transform.
voidsetToQuadrantRotation(int numquadrants)
Sets this transform to a rotation transformation that rotates coordinates by the specified number of quadrants.
voidsetToQuadrantRotation(int numquadrants, double anchorx, double anchory)
Sets this transform to a translated rotation transformation that rotates coordinates by the specified number of quadrants around the specified anchor point.
voidsetToRotation(double theta, double anchorx, double anchory)
Sets this transform to a translated rotation transformation.
voidsetToRotation(double theta)
Sets this transform to a rotation transformation.
voidsetToRotation(double vecx, double vecy)
Sets this transform to a rotation transformation that rotates coordinates according to a rotation vector.
voidsetToRotation(double vecx, double vecy, double anchorx, double anchory)
Sets this transform to a rotation transformation that rotates coordinates around an anchor point according to a rotation vector.
voidsetToScale(double sx, double sy)
Sets this transform to a scaling transformation.
voidsetToShear(double shx, double shy)
Sets this transform to a shearing transformation.
voidsetToTranslation(double tx, double ty)
Sets this transform to a translation transformation.
voidsetTransform(AffineTransform Tx)
Sets this transform to a copy of the transform in the specified AffineTransform object.
voidsetTransform(double m00, double m10, double m01, double m11, double m02, double m12)
Sets this transform to the matrix specified by the 6 double precision values.
voidshear(double shx, double shy)
Concatenates this transform with a shearing transformation.
StringtoString()
Returns a String that represents the value of this Object .
Point2Dtransform(Point2D ptSrc, Point2D ptDst)
Transforms the specified ptSrc and stores the result in ptDst .
voidtransform(Point2D[] ptSrc, int srcOff, Point2D[] ptDst, int dstOff, int numPts)
Transforms an array of point objects by this transform.
voidtransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
Transforms an array of floating point coordinates by this transform.
voidtransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
Transforms an array of double precision coordinates by this transform.
voidtransform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
Transforms an array of floating point coordinates by this transform and stores the results into an array of doubles.
voidtransform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
Transforms an array of double precision coordinates by this transform and stores the results into an array of floats.
voidtranslate(double tx, double ty)
Concatenates this transform with a translation transformation.