public class AffineTransform extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TRANSFORM_NONE |
static int |
TRANSFORM_ROTATE_180 |
static int |
TRANSFORM_ROTATE_270 |
static int |
TRANSFORM_ROTATE_90 |
static int |
TRANSFORM_ROTATE_NONE |
static int |
TRANSFORM_ROTATE_NOT_RIGHT |
Constructor and Description |
---|
AffineTransform() |
AffineTransform(double[] flatmatrix) |
AffineTransform(double m00,
double m10,
double m01,
double m11,
double m20,
double m21) |
AffineTransform(float m00,
float m10,
float m01,
float m11,
float m20,
float m21) |
Modifier and Type | Method and Description |
---|---|
void |
cached() |
Object |
clone()
Create a field for field copy of this Object if this Object
implements the Cloneable interface.
|
void |
concatenate(AffineTransform Tx) |
Object |
concatenate(Graphics g) |
boolean |
equals(double[] flatMatrix) |
boolean |
equals(double[] flatMatrix,
int count)
See if this transform equals the specified transform.
|
boolean |
equals(Object obj)
Returns if this object is considered equal to the other object.
|
AffineTransform |
getCopy()
Return a copy of this AffineTransform.
|
void |
getMatrix(double[] destMatrix) |
int |
getRightAngleRotation() |
boolean |
isUnity() |
void |
rotate(double theta)
Rotate the transform through an angle in radians.
|
void |
rotate(double theta,
double cx,
double cy)
Rotate the transform through an angle in radians around an anchor point.
|
void |
rotatePageRightAngle(int rotateType,
double pageWidth,
double pageHeight) |
void |
rotateRightAngle(int rotateType) |
void |
rotateRightAngle(int rotateType,
double cx,
double cy) |
void |
scale(double xScale,
double yScale) |
void |
set(AffineTransform other)
Set this AffineTransform to be equal to another one.
|
void |
set(double[] flatmatrix) |
void |
set(double m00,
double m10,
double m01,
double m11,
double m02,
double m12) |
Object |
set(Graphics g) |
void |
setToUnity() |
String |
toString()
Return a String representation of this object.
|
void |
transform(double[] xpoints,
int xoffset,
double[] ypoints,
int yoffset,
int count) |
void |
translate(double tx,
double ty) |
public static final int TRANSFORM_ROTATE_90
public static final int TRANSFORM_ROTATE_180
public static final int TRANSFORM_ROTATE_270
public static final int TRANSFORM_ROTATE_NONE
public static final int TRANSFORM_NONE
public static final int TRANSFORM_ROTATE_NOT_RIGHT
public AffineTransform()
public AffineTransform(double m00, double m10, double m01, double m11, double m20, double m21)
public AffineTransform(float m00, float m10, float m01, float m11, float m20, float m21)
public AffineTransform(double[] flatmatrix)
public boolean equals(double[] flatMatrix, int count)
flatMatrix
- a matrix of either 4 or 6 elements.count
- either a value of 4 or 6.public boolean equals(double[] flatMatrix)
public boolean isUnity()
public void setToUnity()
public boolean equals(Object obj)
Object
public void set(double m00, double m10, double m01, double m11, double m02, double m12)
public void getMatrix(double[] destMatrix)
public void set(AffineTransform other)
other
- the other AffineTransform to make this one equivalent to.public void set(double[] flatmatrix)
public AffineTransform getCopy()
public String toString()
Object
public void concatenate(AffineTransform Tx)
public Object clone()
Object
public void translate(double tx, double ty)
public void rotate(double theta)
theta
- the angle to rotate. Rotating through a positive angle
rotates points on the positive x-axis towards the positive y-axis.public void scale(double xScale, double yScale)
public void rotate(double theta, double cx, double cy)
theta
- the angle to rotate. Rotating through a positive anglecx
- the x-coordinate of the anchor point for rotation.cy
- the y-coordinate of the anchor point for rotation.
rotates points on the positive x-axis towards the positive y-axis.public void rotateRightAngle(int rotateType)
public void rotatePageRightAngle(int rotateType, double pageWidth, double pageHeight)
public void rotateRightAngle(int rotateType, double cx, double cy)
public int getRightAngleRotation()
public void transform(double[] xpoints, int xoffset, double[] ypoints, int yoffset, int count)
public void cached()