@DOMObjectAttribute @DOMNameAttribute(name="SVGMatrix") public class SVGMatrix extends SVGValueType
Many of SVG's graphics operations utilize 2x3 matrices of the form: [a c e] [b d f] which, when expanded into a 3x3 matrix for the purposes of matrix arithmetic, become: [a c e] [b d f] [0 0 1]
Modifier and Type | Field and Description |
---|---|
com.aspose.html.common.drawing.DrMatrix |
Matrix |
flags
PropertyChanged
Constructor and Description |
---|
SVGMatrix() |
SVGMatrix(com.aspose.html.common.drawing.DrMatrix matrix) |
SVGMatrix(float m11,
float m12,
float m21,
float m22,
float m31,
float m32) |
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Creates a new object that is a copy of the current instance.
|
SVGMatrix |
flipX()
Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix.
|
SVGMatrix |
flipY()
Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix.
|
float |
getA()
The A component of the matrix.
|
float |
getB()
The B component of the matrix.
|
float |
getC()
The C component of the matrix.
|
float |
getD()
The D component of the matrix.
|
float |
getE()
The E component of the matrix.
|
float |
getF()
The F component of the matrix.
|
SVGMatrix |
inverse()
Returns the inverse matrix.
|
SVGMatrix |
multiply(SVGMatrix secondMatrix)
Performs matrix multiplication.
|
SVGMatrix |
rotate(float angle)
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix.
|
SVGMatrix |
rotateFromVector(float x,
float y)
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix.
|
SVGMatrix |
scale(float scaleFactor)
Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix.
|
SVGMatrix |
scaleNonUniform(float scaleFactorX,
float scaleFactorY)
Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix.
|
void |
setA(float value)
The A component of the matrix.
|
void |
setB(float value)
The B component of the matrix.
|
void |
setC(float value)
The C component of the matrix.
|
void |
setD(float value)
The D component of the matrix.
|
void |
setE(float value)
The E component of the matrix.
|
void |
setF(float value)
The F component of the matrix.
|
SVGMatrix |
skewX(float angle)
Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix.
|
SVGMatrix |
skewY(float angle)
Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix.
|
SVGMatrix |
translate(float x,
float y)
Post-multiplies a translation transformation on the current matrix and returns the resulting matrix.
|
asReadOnly, dispose, getKey, isDetached, isObserverSuppressed, isReadOnly, notifyPropertyChanged, setDetached, setObserverSuppressed, toString
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public SVGMatrix()
public SVGMatrix(float m11, float m12, float m21, float m22, float m31, float m32)
public SVGMatrix(com.aspose.html.common.drawing.DrMatrix matrix)
@DOMNameAttribute(name="a") public float getA()
The A component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The A component of the matrix.@DOMNameAttribute(name="a") public void setA(float value)
The A component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The A component of the matrix.@DOMNameAttribute(name="b") public float getB()
The B component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The B component of the matrix.@DOMNameAttribute(name="b") public void setB(float value)
The B component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The B component of the matrix.@DOMNameAttribute(name="c") public float getC()
The C component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The C component of the matrix.@DOMNameAttribute(name="c") public void setC(float value)
The C component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The C component of the matrix.@DOMNameAttribute(name="d") public float getD()
The D component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The D component of the matrix.@DOMNameAttribute(name="d") public void setD(float value)
The D component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The D component of the matrix.@DOMNameAttribute(name="e") public float getE()
The E component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The E component of the matrix.@DOMNameAttribute(name="e") public void setE(float value)
The E component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The E component of the matrix.@DOMNameAttribute(name="f") public float getF()
The F component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The F component of the matrix.@DOMNameAttribute(name="f") public void setF(float value)
The F component of the matrix.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised on an attempt to change the value of a read only attribute.
Value:
The F component of the matrix.@DOMNameAttribute(name="multiply") public SVGMatrix multiply(SVGMatrix secondMatrix)
Performs matrix multiplication. This matrix is post-multiplied by another matrix, returning the resulting new matrix.
secondMatrix
- The matrix which is post-multiplied to this matrix.@DOMNameAttribute(name="inverse") public SVGMatrix inverse()
Returns the inverse matrix.
SVGException
- Code SVGException.SVG_MATRIX_NOT_INVERTABLE
.
Raised if this matrix is not invertable.@DOMNameAttribute(name="translate") public SVGMatrix translate(float x, float y)
Post-multiplies a translation transformation on the current matrix and returns the resulting matrix.
x
- The distance to translate along the x-axis.y
- The distance to translate along the y-axis.@DOMNameAttribute(name="scale") public SVGMatrix scale(float scaleFactor)
Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix.
scaleFactor
- Scale factor in both X and Y.@DOMNameAttribute(name="scaleNonUniform") public SVGMatrix scaleNonUniform(float scaleFactorX, float scaleFactorY)
Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix.
scaleFactorX
- Scale factor in X.scaleFactorY
- Scale factor in Y.@DOMNameAttribute(name="rotate") public SVGMatrix rotate(float angle)
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix.
angle
- Rotation angle.@DOMNameAttribute(name="rotateFromVector") public SVGMatrix rotateFromVector(float x, float y)
Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix. The rotation angle is determined by taking (+/-) atan(y/x). The direction of the vector (x, y) determines whether the positive or negative angle value is used.
x
- The X coordinate of the vector (x,y). Must not be zero.y
- The Y coordinate of the vector (x,y). Must not be zero.SVGException
- Code SVGException.SVG_INVALID_VALUE_ERR
.
Raised if one of the parameters has an invalid value.@DOMNameAttribute(name="flipX") public SVGMatrix flipX()
Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix.
@DOMNameAttribute(name="flipY") public SVGMatrix flipY()
Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix.
@DOMNameAttribute(name="skewX") public SVGMatrix skewX(float angle)
Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix.
angle
- Skew angle.@DOMNameAttribute(name="skewY") public SVGMatrix skewY(float angle)
Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix.
angle
- The angle.public Object deepClone()
Creates a new object that is a copy of the current instance.
deepClone
in class SVGValueType