Class SVGMatrix
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.svg.SVGMatrix
- All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionflipX()Transforms the matrix.flipY()Transforms the matrix.doublegetA()Gets theaentry of the matrix.doublegetB()Gets thebentry of the matrix.doublegetC()Gets thecentry of the matrix.doublegetD()Gets thedentry of the matrix.doublegetE()Gets theeentry of the matrix.doublegetF()Gets thefentry of the matrix.inverse()Transforms the matrix.voidJavaScript constructor.Transforms the matrix.rotate(double angle) Rotates the matrix.rotateFromVector(double x, double y) Transforms the matrix.scale(double factor) Transforms the matrix.scaleNonUniform(double factorX, double factorY) Transforms the matrix.voidsetA(double newValue) Sets theaentry of the matrix.voidsetB(double newValue) Sets thebentry of the matrix.voidsetC(double newValue) Sets thecentry of the matrix.voidsetD(double newValue) Sets thedentry of the matrix.voidsetE(double newValue) Sets theeentry of the matrix.voidsetF(double newValue) Sets thefentry of the matrix.skewX(double angle) Transforms the matrix.skewY(double angle) Transforms the matrix.translate(double x, double y) Translates the matrix.Methods inherited from class HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromiseMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
-
Field Details
-
shearX_
private double shearX_ -
shearY_
private double shearY_ -
scaleX_
private double scaleX_ -
scaleY_
private double scaleY_ -
translateX_
private double translateX_ -
translateY_
private double translateY_
-
-
Constructor Details
-
SVGMatrix
public SVGMatrix()Creates an instance. -
SVGMatrix
Instantiates and configure scope and prototype.- Parameters:
scope- the parent scope
-
-
Method Details
-
jsConstructor
public void jsConstructor()JavaScript constructor. -
getA
public double getA()Gets theaentry of the matrix.- Returns:
- the field
-
getB
public double getB()Gets thebentry of the matrix.- Returns:
- the field
-
getC
public double getC()Gets thecentry of the matrix.- Returns:
- the field
-
getD
public double getD()Gets thedentry of the matrix.- Returns:
- the field
-
getE
public double getE()Gets theeentry of the matrix.- Returns:
- the field
-
getF
public double getF()Gets thefentry of the matrix.- Returns:
- the field
-
setA
public void setA(double newValue) Sets theaentry of the matrix.- Parameters:
newValue- the new value for the field
-
setB
public void setB(double newValue) Sets thebentry of the matrix.- Parameters:
newValue- the new value for the field
-
setC
public void setC(double newValue) Sets thecentry of the matrix.- Parameters:
newValue- the new value for the field
-
setD
public void setD(double newValue) Sets thedentry of the matrix.- Parameters:
newValue- the new value for the field
-
setE
public void setE(double newValue) Sets theeentry of the matrix.- Parameters:
newValue- the new value for the field
-
setF
public void setF(double newValue) Sets thefentry of the matrix.- Parameters:
newValue- the new value for the field
-
flipX
-
flipY
-
inverse
-
multiply
-
rotate
Rotates the matrix.- Parameters:
angle- the rotation angle- Returns:
- the resulting matrix
-
rotateFromVector
Transforms the matrix.- Parameters:
x- the x-coordinate of the vectory- the y-coordinate of the vector- Returns:
- the resulting matrix
-
scale
Transforms the matrix.- Parameters:
factor- the scale factor- Returns:
- the resulting matrix
-
scaleNonUniform
Transforms the matrix.- Parameters:
factorX- the factor for the x-axisfactorY- the factor for the y-axis- Returns:
- the resulting matrix
-
skewX
Transforms the matrix.- Parameters:
angle- the skew angle- Returns:
- the resulting matrix
-
skewY
Transforms the matrix.- Parameters:
angle- the skew angle- Returns:
- the resulting matrix
-
translate
Translates the matrix.- Parameters:
x- the distance along the x-axisy- the distance along the y-axis- Returns:
- the resulting matrix
-