|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adobe.acrobat.sidecar.AffineTransform
Field Summary | |
protected double |
a matrix that describes the affine transform. |
protected double |
b matrix that describes the affine transform. |
protected double |
c matrix that describes the affine transform. |
protected double |
d matrix that describes the affine transform. |
protected AffineTransform |
inverseTransform
|
protected double |
x matrix that describes the affine transform. |
protected double |
y matrix that describes the affine transform. |
Constructor Summary | |
protected |
AffineTransform()
Constructs a new affine transform and sets the entries to identity. |
protected |
AffineTransform(AffineTransform B) Constructs a new affine transform from another affine transform (like clone) |
AffineTransform(double a,
double b, double c, double d, double x, double y) Constructs a new affine transform of 2 columns, 3 rows. |
Method Summary | |
AffineTransform |
appendTransform(AffineTransform A) (left) multiply new transform with this (computes X * A, where X is the current transform) |
java.lang.Object |
clone() |
boolean |
equals(AffineTransform t) Test for equality |
double |
geta() |
double |
getb() |
double |
getc() |
double |
getd() |
static AffineTransform |
getIdentityMatrix()
|
AffineTransform |
getInverse() Find the affine transform, B, that has the property: B * X = identity. |
double |
getx() |
double |
gety() |
int |
hashCode() Returns a hashcode for this transform. |
boolean |
isIdentity() Test for Identity of the 4x4 matrix Exclusive of translation |
boolean |
isInvertable() Test for invertability |
void |
mult(double px,
double py, double[] output) Multiply a vector by our matrix. |
AffineTransform |
preScale(double x)
|
AffineTransform |
preScale(double sx,
double sy) Premultiply the current transform with a scale |
AffineTransform |
preTranslate(double h,
double v) Premultiply the current transform with a translation |
AffineTransform |
rotate(double angle)
Concatentate the current transform with a rotate |
AffineTransform |
scale(double x)
|
AffineTransform |
scale(double sx,
double sy) Concatentate the current transform with a scale |
AffineTransform |
setItalicDegrees(double angle)
Set an italic angle |
AffineTransform |
setTranslate(double h,
double v) Set an absolute translation |
java.lang.String |
toString() |
com.adobe.acrobat.sidecar.BezierPath |
transformPath(com.adobe.acrobat.sidecar.BezierPath bez)
Transform an incoming path by this affine. |
void |
transformPoint(com.adobe.acrobat.sidecar.FloatPoint pt)
Transform the point. |
void |
transformPoint(com.adobe.acrobat.sidecar.FloatPoint ptSrc,
com.adobe.acrobat.sidecar.FloatPoint ptDest) Perform the affine transform on a point |
void |
transformPoints(double[] x_strip,
double[] y_strip, int len) Perform the affine transform on a whole bunch 'o points |
void |
transformRectangle(java.awt.Rectangle r)
Transform the Rectangle. |
AffineTransform |
translate(double h,
double v) Concatenate the current transform with a translate |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected double a
protected double b
protected double c
protected double d
protected double x
protected double y
protected AffineTransform inverseTransform
Constructor Detail |
protected AffineTransform()
public AffineTransform(double a, double b, double c, double d, double x, double y)
x
- Translation in xy
- Translation in yprotected AffineTransform(AffineTransform B)
B
- AffineTransformMethod Detail |
public static AffineTransform getIdentityMatrix()
public double geta()
public double getb()
public double getc()
public double getd()
public double getx()
public double gety()
public boolean equals(AffineTransform t)
public boolean isIdentity()
public boolean isInvertable()
public AffineTransform rotate(double angle)
angle
- Amount of rotation in radians.public AffineTransform scale(double sx, double sy)
public AffineTransform scale(double x)
public AffineTransform preScale(double sx, double sy)
public AffineTransform preScale(double x)
public AffineTransform translate(double h, double v)
public AffineTransform preTranslate(double h, double v)
public AffineTransform setTranslate(double h, double v)
public AffineTransform setItalicDegrees(double angle)
public void mult(double px, double py, double[] output)
input
- input vector -- must be at least size 2 (x is index 0, y is index
1)output
- output vector -- must be at least size 2 (x is index 0, y is index
1)public AffineTransform appendTransform(AffineTransform A)
A
- new transform.public AffineTransform getInverse() throws AffineException
public com.adobe.acrobat.sidecar.BezierPath transformPath(com.adobe.acrobat.sidecar.BezierPath bez)
public void transformPoint(com.adobe.acrobat.sidecar.FloatPoint ptSrc, com.adobe.acrobat.sidecar.FloatPoint ptDest)
ptSrc
- The source pointptDest
- The destination pointpublic void transformPoint(com.adobe.acrobat.sidecar.FloatPoint pt)
pt
- The point to be transformed.public void transformRectangle(java.awt.Rectangle r)
pt
- The Rectangle to be transformed.public void transformPoints(double[] x_strip, double[] y_strip, int len)
x_strip
- array of x datay_strip
- array of y datapublic int hashCode()
public java.lang.String toString()
public java.lang.Object clone()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |