DXMatrix Class
A transformation matrix.
Declaration
public class DXMatrix extends JavaObject
Inherited Members
Inheritance
Constructors
DXMatrix() Constructor
Initializes a new instance of the DXMatrix class.
Declaration
public DXMatrix()
DXMatrix(float m11, float m12, float m21, float m22, float dx, float dy) Constructor
Initializes a new instance of the DXMatrix class with specified settings.
Declaration
public DXMatrix(float m11, float m12, float m21, float m22, float dx, float dy)
Parameters
| Name | Type | Description |
|---|---|---|
| m11 | float | The |
| m12 | float | The |
| m21 | float | The |
| m22 | float | The |
| dx | float | The horizontal offset. |
| dy | float | The vertical offset. |
DXMatrix(float[] elements) Constructor
Initializes a new instance of the DXMatrix class with specified settings.
Declaration
public DXMatrix(float[] elements)
Parameters
| Name | Type | Description |
|---|---|---|
| elements | float[] | The matrix elements. |
Methods
clone() Method
Creates a copy of this matrix.
Declaration
public DXMatrix clone()
Returns
| Type | Description |
|---|---|
DXMatrix |
The cloned |
createRotateMatrix(float angle) Method
Creates a rotation matrix.
Declaration
public static DXMatrix createRotateMatrix(float angle)
Parameters
| Name | Type | Description |
|---|---|---|
| angle | float | The rotation angle. |
Returns
| Type | Description |
|---|---|
DXMatrix |
The rotation matrix. |
createScaleMatrix(float scaleX, float scaleY) Method
Creates a scale matrix.
Declaration
public static DXMatrix createScaleMatrix(float scaleX, float scaleY)
Parameters
| Name | Type | Description |
|---|---|---|
| scaleX | float | The horizontal scale factor. |
| scaleY | float | The vertical scale factor. |
Returns
| Type | Description |
|---|---|
DXMatrix |
The scale matrix. |
createShearMatrix(float shearX, float shearY) Method
Creates a shear matrix.
Declaration
public static DXMatrix createShearMatrix(float shearX, float shearY)
Parameters
| Name | Type | Description |
|---|---|---|
| shearX | float | The horizontal shear factor. |
| shearY | float | The vertical shear factor. |
Returns
| Type | Description |
|---|---|
DXMatrix |
The shear matrix. |
createTranslateMatrix(float offsetX, float offsetY) Method
Creates a translation matrix.
Declaration
public static DXMatrix createTranslateMatrix(float offsetX, float offsetY)
Parameters
| Name | Type | Description |
|---|---|---|
| offsetX | float | The horizontal offset. |
| offsetY | float | The vertical offset. |
Returns
| Type | Description |
|---|---|
DXMatrix |
The translation matrix. |
createWarpMatrix(RectangleF source, List<PointF> destinationPoints) Method
Creates a warp matrix.
Declaration
public static DXMatrix createWarpMatrix(RectangleF source, List<PointF> destinationPoints)
Parameters
| Name | Type | Description |
|---|---|---|
| source | RectangleF | The source rectangle. |
| destinationPoints | java.util.List<com.devexpress.system.drawing.PointF> | The destination points. |
Returns
| Type | Description |
|---|---|
DXMatrix |
The warp matrix. |
createWarpMatrix(RectangleF src, RectangleF dst) Method
Creates a warp matrix.
Declaration
public static DXMatrix createWarpMatrix(RectangleF src, RectangleF dst)
Parameters
| Name | Type | Description |
|---|---|---|
| src | RectangleF | The source rectangle. |
| dst | RectangleF | The destination rectangle. |
Returns
| Type | Description |
|---|---|
DXMatrix |
The warp matrix. |
equals(DXMatrix matrix) Method
Checks whether this matrix equals the specified matrix.
Declaration
public boolean equals(DXMatrix matrix)
Parameters
| Name | Type | Description |
|---|---|---|
| matrix | DXMatrix |
The matrix to compare. |
Returns
| Type | Description |
|---|---|
| boolean |
|
equals(Object obj) Method
Checks whether this matrix equals the specified matrix.
Declaration
public boolean equals(Object obj)
Parameters
| Name | Type | Description |
|---|---|---|
| obj | Object | The matrix to compare. |
Returns
| Type | Description |
|---|---|
| boolean |
|
getA() Method
Returns the a element.
Declaration
public float getA()
Returns
| Type | Description |
|---|---|
| float | The |
getB() Method
Returns the b element.
Declaration
public float getB()
Returns
| Type | Description |
|---|---|
| float | The |
getC() Method
Returns the c element.
Declaration
public float getC()
Returns
| Type | Description |
|---|---|
| float | The |
getD() Method
Returns the d element.
Declaration
public float getD()
Returns
| Type | Description |
|---|---|
| float | The |
getE() Method
Returns the e element.
Declaration
public float getE()
Returns
| Type | Description |
|---|---|
| float | The |
getElements() Method
Returns the elements.
Declaration
public float[] getElements()
Returns
| Type | Description |
|---|---|
| float[] | The matrix elements. |
getF() Method
Returns the f element.
Declaration
public float getF()
Returns
| Type | Description |
|---|---|
| float | The |
getIsIdentity() Method
Returns the identity state.
Declaration
public boolean getIsIdentity()
Returns
| Type | Description |
|---|---|
| boolean |
|
getIsInvertible() Method
Returns the invertible state.
Declaration
public boolean getIsInvertible()
Returns
| Type | Description |
|---|---|
| boolean |
|
getOffsetX() Method
Returns the horizontal offset.
Declaration
public float getOffsetX()
Returns
| Type | Description |
|---|---|
| float | The horizontal offset. |
getOffsetY() Method
Returns the vertical offset.
Declaration
public float getOffsetY()
Returns
| Type | Description |
|---|---|
| float | The vertical offset. |
hashCode() Method
Returns a hash code value for this object.
Declaration
public int hashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |
invert() Method
Inverts this matrix.
Declaration
public void invert()
multiply(DXMatrix matrix, DXMatrixOrder order) Method
Multiplies this matrix by the specified matrix.
Declaration
public void multiply(DXMatrix matrix, DXMatrixOrder order)
Parameters
| Name | Type | Description |
|---|---|---|
| matrix | DXMatrix |
The matrix. |
| order | DXMatrixOrder | The matrix order. |
multiply(DXMatrix matrix) Method
Multiplies this matrix by the specified matrix.
Declaration
public void multiply(DXMatrix matrix)
Parameters
| Name | Type | Description |
|---|---|---|
| matrix | DXMatrix |
The matrix. |
reset() Method
Resets this matrix to the identity matrix.
Declaration
public void reset()
rotate(float angle, DXMatrixOrder order) Method
Rotates this matrix.
Declaration
public void rotate(float angle, DXMatrixOrder order)
Parameters
| Name | Type | Description |
|---|---|---|
| angle | float | The rotation angle. |
| order | DXMatrixOrder | The matrix order. |
rotate(float angle) Method
Rotates this matrix.
Declaration
public void rotate(float angle)
Parameters
| Name | Type | Description |
|---|---|---|
| angle | float | The rotation angle. |
rotateAt(float angle, PointF point, DXMatrixOrder order) Method
Rotates this matrix at the specified point.
Declaration
public void rotateAt(float angle, PointF point, DXMatrixOrder order)
Parameters
| Name | Type | Description |
|---|---|---|
| angle | float | The rotation angle. |
| point | com.devexpress.system.drawing.PointF | The rotation point. |
| order | DXMatrixOrder | The matrix order. |
rotateAt(float angle, PointF point) Method
Rotates this matrix at the specified point.
Declaration
public void rotateAt(float angle, PointF point)
Parameters
| Name | Type | Description |
|---|---|---|
| angle | float | The rotation angle. |
| point | com.devexpress.system.drawing.PointF | The rotation point. |
scale(float scaleX, float scaleY, DXMatrixOrder order) Method
Scales this matrix.
Declaration
public void scale(float scaleX, float scaleY, DXMatrixOrder order)
Parameters
| Name | Type | Description |
|---|---|---|
| scaleX | float | The horizontal scale factor. |
| scaleY | float | The vertical scale factor. |
| order | DXMatrixOrder | The matrix order. |
scale(float scaleX, float scaleY) Method
Scales this matrix.
Declaration
public void scale(float scaleX, float scaleY)
Parameters
| Name | Type | Description |
|---|---|---|
| scaleX | float | The horizontal scale factor. |
| scaleY | float | The vertical scale factor. |
shear(float shearX, float shearY, DXMatrixOrder order) Method
Shears this matrix.
Declaration
public void shear(float shearX, float shearY, DXMatrixOrder order)
Parameters
| Name | Type | Description |
|---|---|---|
| shearX | float | The horizontal shear factor. |
| shearY | float | The vertical shear factor. |
| order | DXMatrixOrder | The matrix order. |
shear(float shearX, float shearY) Method
Shears this matrix.
Declaration
public void shear(float shearX, float shearY)
Parameters
| Name | Type | Description |
|---|---|---|
| shearX | float | The horizontal shear factor. |
| shearY | float | The vertical shear factor. |
transformPoint(PointF point) Method
Transforms the specified point.
Declaration
public PointF transformPoint(PointF point)
Parameters
| Name | Type | Description |
|---|---|---|
| point | com.devexpress.system.drawing.PointF | The point. |
Returns
| Type | Description |
|---|---|
| com.devexpress.system.drawing.PointF | The transformed point. |
transformPoints(List<PointF> points) Method
Transforms the specified points.
Declaration
public List<PointF> transformPoints(List<PointF> points)
Parameters
| Name | Type | Description |
|---|---|---|
| points | java.util.List<com.devexpress.system.drawing.PointF> | The points. |
Returns
| Type | Description |
|---|---|
| java.util.List<com.devexpress.system.drawing.PointF> | The transformed points. |
transformPoints(PointF[] points) Method
Transforms the specified points.
Declaration
public void transformPoints(PointF[] points)
Parameters
| Name | Type | Description |
|---|---|---|
| points | com.devexpress.system.drawing.PointF[] | The points. |
translate(float offsetX, float offsetY, DXMatrixOrder order) Method
Translates this matrix.
Declaration
public void translate(float offsetX, float offsetY, DXMatrixOrder order)
Parameters
| Name | Type | Description |
|---|---|---|
| offsetX | float | The horizontal offset. |
| offsetY | float | The vertical offset. |
| order | DXMatrixOrder | The matrix order. |
translate(float offsetX, float offsetY) Method
Translates this matrix.
Declaration
public void translate(float offsetX, float offsetY)
Parameters
| Name | Type | Description |
|---|---|---|
| offsetX | float | The horizontal offset. |
| offsetY | float | The vertical offset. |