org.freedesktop.cairo
org.freedesktop.cairo.Matrix
.
As this package was never correctly implemented in java-gnome 2.x,
any new code written will likely have a considerably different
public API.public class Matrix extends org.gnu.glib.Struct
Constructor and Description |
---|
Matrix()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Modifier and Type | Method and Description |
---|---|
double |
getX0()
Deprecated.
|
double |
getXX()
Deprecated.
|
double |
getXY()
Deprecated.
|
double |
getY0()
Deprecated.
|
double |
getYX()
Deprecated.
|
double |
getYY()
Deprecated.
|
void |
init(double xx,
double yx,
double xy,
double yy,
double x0,
double y0)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
initIdentity()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
initRotate(double radians)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
initScale(double sx,
double sy)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
initTranslate(double tx,
double ty)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
invert()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
static Matrix |
multiply(Matrix a,
Matrix b)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
rotate(double radians)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
scale(double sx,
double sy)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
setX0(double x0)
Deprecated.
|
void |
setXX(double xx)
Deprecated.
|
void |
setXY(double xy)
Deprecated.
|
void |
setY0(double y0)
Deprecated.
|
void |
setYX(double yx)
Deprecated.
|
void |
setYY(double yy)
Deprecated.
|
Point |
transformDistance(Point distance)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Point |
transformPoint(Point point)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
void |
translate(double tx,
double ty)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
public Matrix()
public void init(double xx, double yx, double xy, double yy, double x0, double y0)
x_new = xx * x + xy * y + x0;
y_new = yx * x + yy * y + y0;
public void initIdentity()
public void initTranslate(double tx, double ty)
tx
- amount to translate in the X direction.ty
- amount to translate in the Y direction.public void initScale(double sx, double sy)
sx
- scale factor in the X direction.sy
- scale factor in the Y direction.public void initRotate(double radians)
radians
- angle of rotation, in radians. The direction of rotation is
defined such that positive angles rotate in the direction from
the positive X axis toward the positive Y axis. With the
default axis orientation of cairo, positive angles rotate in a
clockwise direction.public void translate(double tx, double ty)
tx
- X axis translationty
- Y axis translationpublic void scale(double sx, double sy)
sx
- X axis scaling factorsy
- Y axis scaling factorpublic void rotate(double radians)
radians
- The rotation angle in radians.public void invert()
public static Matrix multiply(Matrix a, Matrix b)
a
- first matrixb
- second matrixpublic Point transformDistance(Point distance)
public Point transformPoint(Point point)
public double getXX()
public void setXX(double xx)
public double getYX()
public void setYX(double yx)
public double getXY()
public void setXY(double xy)
public double getYY()
public void setYY(double yy)
public double getX0()
public void setX0(double x0)
public double getY0()
public void setY0(double y0)