public class AffineTransform extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_FLIP
The type of affine transformation.
|
static int |
TYPE_GENERAL_ROTATION
The type of affine transformation.
|
static int |
TYPE_GENERAL_SCALE
The type of affine transformation.
|
static int |
TYPE_GENERAL_TRANSFORM
The type of affine transformation.
|
static int |
TYPE_IDENTITY
The type of affine transformation.
|
static int |
TYPE_MASK_ROTATION
The type of affine transformation.
|
static int |
TYPE_MASK_SCALE
The type of affine transformation.
|
static int |
TYPE_QUADRANT_ROTATION
The type of affine transformation.
|
static int |
TYPE_TRANSLATION
The type of affine transformation.
|
static int |
TYPE_UNIFORM_SCALE
The type of affine transformation.
|
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) |
Modifier and Type | Method and Description |
---|---|
AffineTransform |
clone() |
void |
concatenate(AffineTransform t) |
AffineTransform |
createInverse() |
void |
deltaTransform(double[] src, int srcOff, double[] dst, int dstOff, int length) |
Point |
deltaTransform(Point src, Point dst) |
double |
getDeterminant() |
void |
getMatrix(double[] matrix) |
void |
getMatrix(float[] 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()
Method returns type of affine transformation.
|
void |
inverseTransform(double[] src, int srcOff, double[] dst, int dstOff, int length) |
void |
inverseTransform(float[] src, int srcOff, float[] dst, int dstOff, int length) |
Point |
inverseTransform(Point src, Point 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 |
setTransform(float m00, float m10, float m01, float m11, float m02, float m12) |
void |
shear(double shx, double shy) |
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(Point[] src, int srcOff, Point[] dst, int dstOff, int length) |
Point |
transform(Point src, Point dst) |
void |
translate(double mx, double my) |
public static final int TYPE_IDENTITY
getType()
.
public static final int TYPE_TRANSLATION
getType()
.
public static final int TYPE_UNIFORM_SCALE
getType()
.
public static final int TYPE_GENERAL_SCALE
getType()
.
public static final int TYPE_QUADRANT_ROTATION
getType()
.
public static final int TYPE_GENERAL_ROTATION
getType()
.
public static final int TYPE_GENERAL_TRANSFORM
getType()
.
public static final int TYPE_FLIP
getType()
.
public static final int TYPE_MASK_SCALE
getType()
.
public static final int TYPE_MASK_ROTATION
getType()
.
public AffineTransform()
public AffineTransform(AffineTransform t)
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()
TYPE_IDENTITY
- new basis equals original one and zero translationTYPE_TRANSLATION
- translation vector isn't zeroTYPE_UNIFORM_SCALE
- vectors length of new basis equalsTYPE_GENERAL_SCALE
- vectors length of new basis doesn't equalTYPE_FLIP
- new basis vector orientation differ from original oneTYPE_QUADRANT_ROTATION
- new basis is rotated by 90, 180, 270, or 360 degreesTYPE_GENERAL_ROTATION
- new basis is rotated by arbitrary angleTYPE_GENERAL_TRANSFORM
- transformation can't be inversedpublic double getScaleX()
public double getScaleY()
public double getShearX()
public double getShearY()
public double getTranslateX()
public double getTranslateY()
public boolean isIdentity()
public void getMatrix(float[] matrix)
public void getMatrix(double[] matrix)
public double getDeterminant()
public void setTransform(float m00, float m10, float m01, float m11, float m02, float m12)
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 Point inverseTransform(Point src, Point 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
public AffineTransform clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 1998–2018 iText Group NV. All rights reserved.