java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.dom.DOMMatrixReadOnly
org.htmlunit.javascript.host.dom.DOMMatrix
- All Implemented Interfaces:
Serializable,Cloneable,org.htmlunit.corejs.javascript.ConstProperties<org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.debug.DebuggableObject,org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.Scriptable,org.htmlunit.corejs.javascript.SymbolScriptable
A JavaScript object for
DOMMatrix.- Author:
- Ahmed Ashour, Ronald Brill
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunction -
Field Summary
Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
isSealedFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetA()Returns theaproperty.doublegetB()Returns thebproperty.doublegetC()Returns thecproperty.doublegetD()Returns thedproperty.doublegetE()Returns theeproperty.doublegetF()Returns thefproperty.doublegetM11()Returns them11property.doublegetM12()Returns them12property.doublegetM13()Returns them13property.doublegetM14()Returns them14property.doublegetM21()Returns them21property.doublegetM22()Returns them22property.doublegetM23()Returns them23property.doublegetM24()Returns them24property.doublegetM31()Returns them31property.doublegetM32()Returns them32property.doublegetM33()Returns them33property.doublegetM34()Returns them34property.doublegetM41()Returns them41property.doublegetM42()Returns them42property.doublegetM43()Returns them43property.doublegetM44()Returns them44property.Inverts the original matrix.static DOMMatrixjsConstructor(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.VarScope scope, Object[] args, org.htmlunit.corejs.javascript.Function ctorObj, boolean inNewExpr) JavaScript constructor.voidsetA(double a) Sets theaproperty.voidsetB(double b) Sets thebproperty.voidsetC(double c) Sets thecproperty.voidsetD(double d) Sets thedproperty.voidsetE(double e) Sets theeproperty.voidsetF(double f) Sets thefproperty.voidsetM11(double m11) Sets them11property.voidsetM12(double m12) Sets them12property.voidsetM13(double m13) Sets them13property.voidsetM14(double m14) Sets them14property.voidsetM21(double m21) Sets them21property.voidsetM22(double m22) Sets them22property.voidsetM23(double m23) Sets them23property.voidsetM24(double m24) Sets them24property.voidsetM31(double m31) Sets them31property.voidsetM32(double m32) Sets them32property.voidsetM33(double m33) Sets them33property.voidsetM34(double m34) Sets them34property.voidsetM41(double m41) Sets them41property.voidsetM42(double m42) Sets them42property.voidsetM43(double m43) Sets them43property.voidsetM44(double m44) Sets them44property.Methods inherited from class org.htmlunit.javascript.host.dom.DOMMatrixReadOnly
flipX, flipY, getIsIdentity, init, inverse, isIs2D, js_toString, multiply, rotate, rotateAxisAngle, setIs2D, skewX, skewY, toFloat32Array, toFloat64Array, toJSON, translateMethods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowOrWorkerGlobalScope, getWithPreemption, has, hasInstance, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setupPromise, setupRejectedPromiseMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, getAllIds, getAncestor, getArrayPrototype, getClassPrototype, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getThis, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasProperty, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isTrue, preventExtensions, put, put, putConst, putConstProperty, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, redefineProperty, sameValue, sealObject, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizeMethods inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
associateValue, checkNotSealed, copyAssociatedValue, createSlotMap, defineProperty, defineProperty, get, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getIds, has, has, isSealed, readMaps, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, writeMapsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.Scriptable
get, getIds, has, hasMethods inherited from interface org.htmlunit.corejs.javascript.SymbolScriptable
get, has
-
Constructor Details
-
DOMMatrix
public DOMMatrix()
-
-
Method Details
-
jsConstructor
public static DOMMatrix jsConstructor(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.VarScope scope, Object[] args, org.htmlunit.corejs.javascript.Function ctorObj, boolean inNewExpr) JavaScript constructor.- Parameters:
cx- the current contextscope- the scopeargs- the arguments to the WebSocket constructorctorObj- the function objectinNewExpr- Is new or not- Returns:
- the java object to allow JavaScript to access
-
getM11
public double getM11()Returns them11property.- Overrides:
getM11in classDOMMatrixReadOnly- Returns:
- the
m11property
-
setM11
public void setM11(double m11) Sets them11property.- Overrides:
setM11in classDOMMatrixReadOnly- Parameters:
m11- the new value
-
getM12
public double getM12()Returns them12property.- Overrides:
getM12in classDOMMatrixReadOnly- Returns:
- the
m12property
-
setM12
public void setM12(double m12) Sets them12property.- Overrides:
setM12in classDOMMatrixReadOnly- Parameters:
m12- the new value
-
getM13
public double getM13()Returns them13property.- Overrides:
getM13in classDOMMatrixReadOnly- Returns:
- the
m13property
-
setM13
public void setM13(double m13) Sets them13property.- Overrides:
setM13in classDOMMatrixReadOnly- Parameters:
m13- the new value
-
getM14
public double getM14()Returns them14property.- Overrides:
getM14in classDOMMatrixReadOnly- Returns:
- the
m14property
-
setM14
public void setM14(double m14) Sets them14property.- Overrides:
setM14in classDOMMatrixReadOnly- Parameters:
m14- the new value
-
getM21
public double getM21()Returns them21property.- Overrides:
getM21in classDOMMatrixReadOnly- Returns:
- the
m21property
-
setM21
public void setM21(double m21) Sets them21property.- Overrides:
setM21in classDOMMatrixReadOnly- Parameters:
m21- the new value
-
getM22
public double getM22()Returns them22property.- Overrides:
getM22in classDOMMatrixReadOnly- Returns:
- the
m22property
-
setM22
public void setM22(double m22) Sets them22property.- Overrides:
setM22in classDOMMatrixReadOnly- Parameters:
m22- the new value
-
getM23
public double getM23()Returns them23property.- Overrides:
getM23in classDOMMatrixReadOnly- Returns:
- the
m23property
-
setM23
public void setM23(double m23) Sets them23property.- Overrides:
setM23in classDOMMatrixReadOnly- Parameters:
m23- the new value
-
getM24
public double getM24()Returns them24property.- Overrides:
getM24in classDOMMatrixReadOnly- Returns:
- the
m24property
-
setM24
public void setM24(double m24) Sets them24property.- Overrides:
setM24in classDOMMatrixReadOnly- Parameters:
m24- the new value
-
getM31
public double getM31()Returns them31property.- Overrides:
getM31in classDOMMatrixReadOnly- Returns:
- the
m31property
-
setM31
public void setM31(double m31) Sets them31property.- Overrides:
setM31in classDOMMatrixReadOnly- Parameters:
m31- the new value
-
getM32
public double getM32()Returns them32property.- Overrides:
getM32in classDOMMatrixReadOnly- Returns:
- the
m32property
-
setM32
public void setM32(double m32) Sets them32property.- Overrides:
setM32in classDOMMatrixReadOnly- Parameters:
m32- the new value
-
getM33
public double getM33()Returns them33property.- Overrides:
getM33in classDOMMatrixReadOnly- Returns:
- the
m33property
-
setM33
public void setM33(double m33) Sets them33property.- Overrides:
setM33in classDOMMatrixReadOnly- Parameters:
m33- the new value
-
getM34
public double getM34()Returns them34property.- Overrides:
getM34in classDOMMatrixReadOnly- Returns:
- the
m34property
-
setM34
public void setM34(double m34) Sets them34property.- Overrides:
setM34in classDOMMatrixReadOnly- Parameters:
m34- the new value
-
getM41
public double getM41()Returns them41property.- Overrides:
getM41in classDOMMatrixReadOnly- Returns:
- the
m41property
-
setM41
public void setM41(double m41) Sets them41property.- Overrides:
setM41in classDOMMatrixReadOnly- Parameters:
m41- the new value
-
getM42
public double getM42()Returns them42property.- Overrides:
getM42in classDOMMatrixReadOnly- Returns:
- the
m42property
-
setM42
public void setM42(double m42) Sets them42property.- Overrides:
setM42in classDOMMatrixReadOnly- Parameters:
m42- the new value
-
getM43
public double getM43()Returns them43property.- Overrides:
getM43in classDOMMatrixReadOnly- Returns:
- the
m43property
-
setM43
public void setM43(double m43) Sets them43property.- Overrides:
setM43in classDOMMatrixReadOnly- Parameters:
m43- the new value
-
getM44
public double getM44()Returns them44property.- Overrides:
getM44in classDOMMatrixReadOnly- Returns:
- the
m44property
-
setM44
public void setM44(double m44) Sets them44property.- Overrides:
setM44in classDOMMatrixReadOnly- Parameters:
m44- the new value
-
getA
public double getA()Returns theaproperty.- Overrides:
getAin classDOMMatrixReadOnly- Returns:
- the
aproperty
-
setA
public void setA(double a) Sets theaproperty.- Parameters:
a- the new value
-
getB
public double getB()Returns thebproperty.- Overrides:
getBin classDOMMatrixReadOnly- Returns:
- the
bproperty
-
setB
public void setB(double b) Sets thebproperty.- Parameters:
b- the new value
-
getC
public double getC()Returns thecproperty.- Overrides:
getCin classDOMMatrixReadOnly- Returns:
- the
cproperty
-
setC
public void setC(double c) Sets thecproperty.- Parameters:
c- the new value
-
getD
public double getD()Returns thedproperty.- Overrides:
getDin classDOMMatrixReadOnly- Returns:
- the
dproperty
-
setD
public void setD(double d) Sets thedproperty.- Parameters:
d- the new value
-
getE
public double getE()Returns theeproperty.- Overrides:
getEin classDOMMatrixReadOnly- Returns:
- the
eproperty
-
setE
public void setE(double e) Sets theeproperty.- Parameters:
e- the new value
-
getF
public double getF()Returns thefproperty.- Overrides:
getFin classDOMMatrixReadOnly- Returns:
- the
fproperty
-
setF
public void setF(double f) Sets thefproperty.- Parameters:
f- the new value
-
invertSelf
Inverts the original matrix. If the matrix cannot be inverted, the new matrix's components are all set to NaN and its is2D property is set to false.- Returns:
- this matrix, inverted
-