public class AffineTransform extends Object implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_FLIP |
static int |
TYPE_GENERAL_ROTATION |
static int |
TYPE_GENERAL_SCALE |
static int |
TYPE_GENERAL_TRANSFORM |
static int |
TYPE_IDENTITY |
static int |
TYPE_MASK_ROTATION |
static int |
TYPE_MASK_SCALE |
static int |
TYPE_QUADRANT_ROTATION |
static int |
TYPE_TRANSLATION |
static int |
TYPE_UNIFORM_SCALE |
Constructor and Description |
---|
AffineTransform() |
AffineTransform(AffineTransform t) |
AffineTransform(double[] matrix) |
AffineTransform(double m00, double m10, double m01, double m11, double m02, double m12) |
AffineTransform(float[] matrix) |
AffineTransform(float m00, float m10, float m01, float m11, float m02, float m12) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
void |
concatenate(AffineTransform t) |
AffineTransform |
createInverse() |
Shape |
createTransformedShape(Shape src) |
void |
deltaTransform(double[] src, int srcOff, double[] dst, int dstOff, int length) |
Point2D |
deltaTransform(Point2D src, Point2D dst) |
boolean |
equals(Object obj) |
double |
getDeterminant() |
void |
getMatrix(double[] matrix) |
static AffineTransform |
getRotateInstance(double angle) |
static AffineTransform |
getRotateInstance(double angle, double x, double y) |
static AffineTransform |
getScaleInstance(double scx, double scY) |
double |
getScaleX() |
double |
getScaleY() |
static AffineTransform |
getShearInstance(double shx, double shy) |
double |
getShearX() |
double |
getShearY() |
static AffineTransform |
getTranslateInstance(double mx, double my) |
double |
getTranslateX() |
double |
getTranslateY() |
int |
getType() |
int |
hashCode() |
void |
inverseTransform(double[] src, int srcOff, double[] dst, int dstOff, int length) |
void |
inverseTransform(float[] src, int srcOff, float[] dst, int dstOff, int length) |
Point2D |
inverseTransform(Point2D src, Point2D dst) |
boolean |
isIdentity() |
void |
preConcatenate(AffineTransform t) |
void |
rotate(double angle) |
void |
rotate(double angle, double px, double py) |
void |
scale(double scx, double scy) |
void |
setToIdentity() |
void |
setToRotation(double angle) |
void |
setToRotation(double angle, double px, double py) |
void |
setToScale(double scx, double scy) |
void |
setToShear(double shx, double shy) |
void |
setToTranslation(double mx, double my) |
void |
setTransform(AffineTransform t) |
void |
setTransform(double m00, double m10, double m01, double m11, double m02, double m12) |
void |
shear(double shx, double shy) |
String |
toString() |
void |
transform(double[] src, int srcOff, double[] dst, int dstOff, int length) |
void |
transform(double[] src, int srcOff, float[] dst, int dstOff, int length) |
void |
transform(float[] src, int srcOff, double[] dst, int dstOff, int length) |
void |
transform(float[] src, int srcOff, float[] dst, int dstOff, int length) |
void |
transform(Point2D[] src, int srcOff, Point2D[] dst, int dstOff, int length) |
Point2D |
transform(Point2D src, Point2D dst) |
void |
translate(double mx, double my) |
public static final int TYPE_IDENTITY
public static final int TYPE_TRANSLATION
public static final int TYPE_UNIFORM_SCALE
public static final int TYPE_GENERAL_SCALE
public static final int TYPE_QUADRANT_ROTATION
public static final int TYPE_GENERAL_ROTATION
public static final int TYPE_GENERAL_TRANSFORM
public static final int TYPE_FLIP
public static final int TYPE_MASK_SCALE
public static final int TYPE_MASK_ROTATION
public AffineTransform()
public AffineTransform(AffineTransform t)
public AffineTransform(float m00, float m10, float m01, float m11, float m02, float m12)
public AffineTransform(double m00, double m10, double m01, double m11, double m02, double m12)
public AffineTransform(float[] matrix)
public AffineTransform(double[] matrix)
public int getType()
public double getScaleX()
public double getScaleY()
public double getShearX()
public double getShearY()
public double getTranslateX()
public double getTranslateY()
public boolean isIdentity()
public void getMatrix(double[] matrix)
public double getDeterminant()
public void setTransform(double m00, double m10, double m01, double m11, double m02, double m12)
public void setTransform(AffineTransform t)
public void setToIdentity()
public void setToTranslation(double mx, double my)
public void setToScale(double scx, double scy)
public void setToShear(double shx, double shy)
public void setToRotation(double angle)
public void setToRotation(double angle, double px, double py)
public static AffineTransform getTranslateInstance(double mx, double my)
public static AffineTransform getScaleInstance(double scx, double scY)
public static AffineTransform getShearInstance(double shx, double shy)
public static AffineTransform getRotateInstance(double angle)
public static AffineTransform getRotateInstance(double angle, double x, double y)
public void translate(double mx, double my)
public void scale(double scx, double scy)
public void shear(double shx, double shy)
public void rotate(double angle)
public void rotate(double angle, double px, double py)
public void concatenate(AffineTransform t)
public void preConcatenate(AffineTransform t)
public AffineTransform createInverse() throws NoninvertibleTransformException
NoninvertibleTransformException
public void transform(double[] src, int srcOff, double[] dst, int dstOff, int length)
public void transform(float[] src, int srcOff, float[] dst, int dstOff, int length)
public void transform(float[] src, int srcOff, double[] dst, int dstOff, int length)
public void transform(double[] src, int srcOff, float[] dst, int dstOff, int length)
public void deltaTransform(double[] src, int srcOff, double[] dst, int dstOff, int length)
public Point2D inverseTransform(Point2D src, Point2D dst) throws NoninvertibleTransformException
NoninvertibleTransformException
public void inverseTransform(double[] src, int srcOff, double[] dst, int dstOff, int length) throws NoninvertibleTransformException
NoninvertibleTransformException
public void inverseTransform(float[] src, int srcOff, float[] dst, int dstOff, int length) throws NoninvertibleTransformException
NoninvertibleTransformException
Copyright © 1998–2019. All rights reserved.