|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.chart.client.draw.Matrix
public class Matrix
Matrix class representing the vector transform matrix used in SVG and
VML.
| Constructor Summary | |
|---|---|
Matrix()
Creates a new identity matrix. |
|
Matrix(double a,
double b,
double c,
double d,
double e,
double f)
Creates a new matrix using the given double values. |
|
Matrix(Matrix clone)
Creates a clone of the given matrix. |
|
| Method Summary | |
|---|---|
void |
add(double a,
double b,
double c,
double d,
double e,
double f)
Adds the given matrix to this matrix. |
double |
get(int row,
int column)
Returns the element of the matrix at the given row and column. |
double[][] |
getMatrix()
Returns the array of element data. |
void |
identity()
Sets this matrix to the identity matrix. |
Matrix |
invert()
Returns the inverse of this matrix. |
PrecisePoint |
pointMultiply(PrecisePoint point)
Multiplies the matrix by the given point and returns the result. |
void |
prepend(double a,
double b,
double c,
double d,
double e,
double f)
Prepend this matrix with the given matrix. |
void |
rotate(double angle,
double x,
double y)
Rotates the matrix using the given angle and arbitrary axis. |
void |
scale(double x,
double y,
double cx,
double cy)
Scales the matrix using given x and y scale and the given origin |
void |
set(int row,
int column,
double value)
Sets an element of the matrix using the given value at the specified row and column. |
void |
setMatrix(double[][] matrix)
Sets the element data of the matrix using the given array. |
void |
translate(double x,
double y)
Translates the matrix using the given x and y values. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Matrix()
public Matrix(double a,
double b,
double c,
double d,
double e,
double f)
a - the a component of the matrixb - the b component of the matrixc - the c component of the matrixd - the d component of the matrixe - the e component of the matrixf - the f component of the matrixpublic Matrix(Matrix clone)
clone - the matrix to be cloned| Method Detail |
|---|
public void add(double a,
double b,
double c,
double d,
double e,
double f)
a - the a component of the matrixb - the b component of the matrixc - the c component of the matrixd - the d component of the matrixe - the e component of the matrixf - the f component of the matrix
public double get(int row,
int column)
row - the row of the elementcolumn - the column of the element
public double[][] getMatrix()
public void identity()
public Matrix invert()
public PrecisePoint pointMultiply(PrecisePoint point)
point - the point to multiply
public void prepend(double a,
double b,
double c,
double d,
double e,
double f)
a - the a component of the matrixb - the b component of the matrixc - the c component of the matrixd - the d component of the matrixe - the e component of the matrixf - the f component of the matrix
public void rotate(double angle,
double x,
double y)
angle - the angle used to rotate the matrixx - the x coordinate of the arbitrary axisy - the y coordinate of the arbitrary axis
public void scale(double x,
double y,
double cx,
double cy)
x - the x scaley - the y scalecx - the x-coordinate of the scalecy - the y-coordinate of the scale
public void set(int row,
int column,
double value)
row - the row of the elementcolumn - the column of the elementvalue - the new value of the elementpublic void setMatrix(double[][] matrix)
matrix - must be a 3x3 array
public void translate(double x,
double y)
x - the translation on the x axisy - the translation on the y axis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||