Example usage for Java java.awt.geom AffineTransform fields, constructors, methods, implement or subclass
The text is from its open source code.
int | TYPE_IDENTITY This constant indicates that the transform defined by this object is an identity transform. |
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. |
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. |
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. |
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. |
Object | clone() Returns a copy of this AffineTransform object. |
void | concatenate(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 . |
AffineTransform | createInverse() Returns an AffineTransform object representing the inverse transformation. |
Shape | createTransformedShape(Shape pSrc) Returns a new Shape object defined by the geometry of the specified Shape after it has been transformed by this transform. |
double | getDeterminant() Returns the determinant of the matrix representation of the transform. |
void | getMatrix(double[] flatmatrix) Retrieves the 6 specifiable values in the 3x3 affine transformation matrix and places them into an array of double precisions values. |
AffineTransform | getQuadrantRotateInstance(int numquadrants) Returns a transform that rotates coordinates by the specified number of quadrants. |
AffineTransform | getQuadrantRotateInstance(int numquadrants, double anchorx, double anchory) Returns a transform that rotates coordinates by the specified number of quadrants around the specified anchor point. |
AffineTransform | getRotateInstance(double theta) Returns a transform representing a rotation transformation. |
AffineTransform | getRotateInstance(double theta, double anchorx, double anchory) Returns a transform that rotates coordinates around an anchor point. |
AffineTransform | getRotateInstance(double vecx, double vecy) Returns a transform that rotates coordinates according to a rotation vector. |
AffineTransform | getRotateInstance(double vecx, double vecy, double anchorx, double anchory) Returns a transform that rotates coordinates around an anchor point according to a rotation vector. |
AffineTransform | getScaleInstance(double sx, double sy) Returns a transform representing a scaling transformation. |
double | getScaleX() Returns the m00 element of the 3x3 affine transformation matrix. |
double | getScaleY() Returns the m11 element of the 3x3 affine transformation matrix. |
AffineTransform | getShearInstance(double shx, double shy) Returns a transform representing a shearing transformation. |
double | getShearX() Returns the X coordinate shearing element (m01) of the 3x3 affine transformation matrix. |
double | getShearY() Returns the Y coordinate shearing element (m10) of the 3x3 affine transformation matrix. |
AffineTransform | getTranslateInstance(double tx, double ty) Returns a transform representing a translation transformation. |
double | getTranslateX() Returns the X coordinate of the translation element (m02) of the 3x3 affine transformation matrix. |
double | getTranslateY() Returns the Y coordinate of the translation element (m12) of the 3x3 affine transformation matrix. |
int | getType() Retrieves the flag bits describing the conversion properties of this transform. |
Point2D | inverseTransform(Point2D ptSrc, Point2D ptDst) Inverse transforms the specified ptSrc and stores the result in ptDst . |
void | inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Inverse transforms an array of double precision coordinates by this transform. |
boolean | isIdentity() Returns true if this AffineTransform is an identity transform. |
void | preConcatenate(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. |
void | quadrantRotate(int numquadrants) Concatenates this transform with a transform that rotates coordinates by the specified number of quadrants. |
void | rotate(double theta) Concatenates this transform with a rotation transformation. |
void | rotate(double theta, double anchorx, double anchory) Concatenates this transform with a transform that rotates coordinates around an anchor point. |
void | rotate(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. |
void | rotate(double vecx, double vecy) Concatenates this transform with a transform that rotates coordinates according to a rotation vector. |
void | scale(double sx, double sy) Concatenates this transform with a scaling transformation. |
void | setToIdentity() Resets this transform to the Identity transform. |
void | setToQuadrantRotation(int numquadrants) Sets this transform to a rotation transformation that rotates coordinates by the specified number of quadrants. |
void | setToQuadrantRotation(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. |
void | setToRotation(double theta, double anchorx, double anchory) Sets this transform to a translated rotation transformation. |
void | setToRotation(double theta) Sets this transform to a rotation transformation. |
void | setToRotation(double vecx, double vecy) Sets this transform to a rotation transformation that rotates coordinates according to a rotation vector. |
void | setToRotation(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. |
void | setToScale(double sx, double sy) Sets this transform to a scaling transformation. |
void | setToShear(double shx, double shy) Sets this transform to a shearing transformation. |
void | setToTranslation(double tx, double ty) Sets this transform to a translation transformation. |
void | setTransform(AffineTransform Tx) Sets this transform to a copy of the transform in the specified AffineTransform object. |
void | setTransform(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. |
void | shear(double shx, double shy) Concatenates this transform with a shearing transformation. |
String | toString() Returns a String that represents the value of this Object . |
Point2D | transform(Point2D ptSrc, Point2D ptDst) Transforms the specified ptSrc and stores the result in ptDst . |
void | transform(Point2D[] ptSrc, int srcOff, Point2D[] ptDst, int dstOff, int numPts) Transforms an array of point objects by this transform. |
void | transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms an array of floating point coordinates by this transform. |
void | transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms an array of double precision coordinates by this transform. |
void | transform(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. |
void | transform(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. |
void | translate(double tx, double ty) Concatenates this transform with a translation transformation. |