Module org.htmlunit

Class DOMMatrix

java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
org.htmlunit.corejs.javascript.ScriptableObject
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

public class DOMMatrix extends DOMMatrixReadOnly
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_CONST

    Fields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner

    isSealed

    Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
    double
     
    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.
    void
    setA(double a)
     
    void
    setB(double b)
     
    void
    setC(double c)
     
    void
    setD(double d)
     
    void
    setE(double e)
     
    void
    setF(double f)
     
    void
    setM11(double m11)
    void
    setM12(double m12)
    void
    setM13(double m13)
    void
    setM14(double m14)
    void
    setM21(double m21)
    void
    setM22(double m22)
    void
    setM23(double m23)
    void
    setM24(double m24)
    void
    setM31(double m31)
    void
    setM32(double m32)
    void
    setM33(double m33)
    void
    setM34(double m34)
    void
    setM41(double m41)
    void
    setM42(double m42)
    void
    setM43(double m43)
    void
    setM44(double m44)

    Methods 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, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, 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, size

    Methods 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, writeMaps

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.htmlunit.corejs.javascript.Scriptable

    get, getIds, has, has

    Methods 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 context
      scope - the scope
      args - the arguments to the WebSocket constructor
      ctorObj - the function object
      inNewExpr - Is new or not
      Returns:
      the java object to allow JavaScript to access
    • getM11

      public double getM11()
      Overrides:
      getM11 in class DOMMatrixReadOnly
      Returns:
      m11
    • setM11

      public void setM11(double m11)
      Overrides:
      setM11 in class DOMMatrixReadOnly
      Parameters:
      m11 - the new value
    • getM12

      public double getM12()
      Overrides:
      getM12 in class DOMMatrixReadOnly
      Returns:
      m12
    • setM12

      public void setM12(double m12)
      Overrides:
      setM12 in class DOMMatrixReadOnly
      Parameters:
      m12 - the new value
    • getM13

      public double getM13()
      Overrides:
      getM13 in class DOMMatrixReadOnly
      Returns:
      m13
    • setM13

      public void setM13(double m13)
      Overrides:
      setM13 in class DOMMatrixReadOnly
      Parameters:
      m13 - the new value
    • getM14

      public double getM14()
      Overrides:
      getM14 in class DOMMatrixReadOnly
      Returns:
      m14
    • setM14

      public void setM14(double m14)
      Overrides:
      setM14 in class DOMMatrixReadOnly
      Parameters:
      m14 - the new value
    • getM21

      public double getM21()
      Overrides:
      getM21 in class DOMMatrixReadOnly
      Returns:
      m21
    • setM21

      public void setM21(double m21)
      Overrides:
      setM21 in class DOMMatrixReadOnly
      Parameters:
      m21 - the new value
    • getM22

      public double getM22()
      Overrides:
      getM22 in class DOMMatrixReadOnly
      Returns:
      m22
    • setM22

      public void setM22(double m22)
      Overrides:
      setM22 in class DOMMatrixReadOnly
      Parameters:
      m22 - the new value
    • getM23

      public double getM23()
      Overrides:
      getM23 in class DOMMatrixReadOnly
      Returns:
      m23
    • setM23

      public void setM23(double m23)
      Overrides:
      setM23 in class DOMMatrixReadOnly
      Parameters:
      m23 - the new value
    • getM24

      public double getM24()
      Overrides:
      getM24 in class DOMMatrixReadOnly
      Returns:
      m24
    • setM24

      public void setM24(double m24)
      Overrides:
      setM24 in class DOMMatrixReadOnly
      Parameters:
      m24 - the new value
    • getM31

      public double getM31()
      Overrides:
      getM31 in class DOMMatrixReadOnly
      Returns:
      m31
    • setM31

      public void setM31(double m31)
      Overrides:
      setM31 in class DOMMatrixReadOnly
      Parameters:
      m31 - the new value
    • getM32

      public double getM32()
      Overrides:
      getM32 in class DOMMatrixReadOnly
      Returns:
      m32
    • setM32

      public void setM32(double m32)
      Overrides:
      setM32 in class DOMMatrixReadOnly
      Parameters:
      m32 - the new value
    • getM33

      public double getM33()
      Overrides:
      getM33 in class DOMMatrixReadOnly
      Returns:
      m33
    • setM33

      public void setM33(double m33)
      Overrides:
      setM33 in class DOMMatrixReadOnly
      Parameters:
      m33 - the new value
    • getM34

      public double getM34()
      Overrides:
      getM34 in class DOMMatrixReadOnly
      Returns:
      m34
    • setM34

      public void setM34(double m34)
      Overrides:
      setM34 in class DOMMatrixReadOnly
      Parameters:
      m34 - the new value
    • getM41

      public double getM41()
      Overrides:
      getM41 in class DOMMatrixReadOnly
      Returns:
      m41
    • setM41

      public void setM41(double m41)
      Overrides:
      setM41 in class DOMMatrixReadOnly
      Parameters:
      m41 - the new value
    • getM42

      public double getM42()
      Overrides:
      getM42 in class DOMMatrixReadOnly
      Returns:
      m42
    • setM42

      public void setM42(double m42)
      Overrides:
      setM42 in class DOMMatrixReadOnly
      Parameters:
      m42 - the new value
    • getM43

      public double getM43()
      Overrides:
      getM43 in class DOMMatrixReadOnly
      Returns:
      m43
    • setM43

      public void setM43(double m43)
      Overrides:
      setM43 in class DOMMatrixReadOnly
      Parameters:
      m43 - the new value
    • getM44

      public double getM44()
      Overrides:
      getM44 in class DOMMatrixReadOnly
      Returns:
      m44
    • setM44

      public void setM44(double m44)
      Overrides:
      setM44 in class DOMMatrixReadOnly
      Parameters:
      m44 - the new value
    • getA

      public double getA()
      Overrides:
      getA in class DOMMatrixReadOnly
      Returns:
      a
    • setA

      public void setA(double a)
      Parameters:
      a - the new value
    • getB

      public double getB()
      Overrides:
      getB in class DOMMatrixReadOnly
      Returns:
      b
    • setB

      public void setB(double b)
      Parameters:
      b - the new value
    • getC

      public double getC()
      Overrides:
      getC in class DOMMatrixReadOnly
      Returns:
      c
    • setC

      public void setC(double c)
      Parameters:
      c - the new value
    • getD

      public double getD()
      Overrides:
      getD in class DOMMatrixReadOnly
      Returns:
      d
    • setD

      public void setD(double d)
      Parameters:
      d - the new value
    • getE

      public double getE()
      Overrides:
      getE in class DOMMatrixReadOnly
      Returns:
      e
    • setE

      public void setE(double e)
      Parameters:
      e - the new value
    • getF

      public double getF()
      Overrides:
      getF in class DOMMatrixReadOnly
      Returns:
      f
    • setF

      public void setF(double f)
      Parameters:
      f - the new value
    • invertSelf

      public DOMMatrix invertSelf()
      Returns:
      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.