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.svg.SVGMatrix
- 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
JavaScript host object for
SVGMatrix.- Author:
- Marc Guillemot, 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 TypeMethodDescriptionflipX()Returns a new matrix that is the result of flipping this matrix along the x-axis.flipY()Returns a new matrix that is the result of flipping this matrix along the y-axis.doublegetA()Returns theaentry of the matrix.doublegetB()Returns thebentry of the matrix.doublegetC()Returns thecentry of the matrix.doublegetD()Returns thedentry of the matrix.doublegetE()Returns theeentry of the matrix.doublegetF()Returns thefentry of the matrix.inverse()Returns the inverse of this matrix.voidCreates an instance of this object.Returns a new matrix that is the result of multiplying this matrix by the given matrix.rotate(double angle) Returns a new matrix that is the result of rotating this matrix by the given angle.rotateFromVector(double x, double y) Returns a new matrix that is the result of rotating this matrix by the angle defined by the given vector.scale(double factor) Returns a new matrix that is the result of scaling this matrix uniformly by the given factor.scaleNonUniform(double factorX, double factorY) Returns a new matrix that is the result of scaling this matrix non-uniformly by the given factors along each axis.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) Returns a new matrix that is the result of skewing this matrix along the x-axis by the given angle.skewY(double angle) Returns a new matrix that is the result of skewing this matrix along the y-axis by the given angle.translate(double x, double y) Returns a new matrix that is the result of translating this matrix by the given distances.Methods 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
-
SVGMatrix
public SVGMatrix()Creates an instance. -
SVGMatrix
public SVGMatrix(org.htmlunit.corejs.javascript.VarScope scope) Instantiates and configures the scope and prototype.- Parameters:
scope- the parent scope
-
-
Method Details
-
jsConstructor
public void jsConstructor()Creates an instance of this object. -
getA
public double getA()Returns theaentry of the matrix.- Returns:
- the field
-
getB
public double getB()Returns thebentry of the matrix.- Returns:
- the field
-
getC
public double getC()Returns thecentry of the matrix.- Returns:
- the field
-
getD
public double getD()Returns thedentry of the matrix.- Returns:
- the field
-
getE
public double getE()Returns theeentry of the matrix.- Returns:
- the field
-
getF
public double getF()Returns 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
Returns a new matrix that is the result of flipping this matrix along the x-axis.- Returns:
- the resulting matrix
-
flipY
Returns a new matrix that is the result of flipping this matrix along the y-axis.- Returns:
- the resulting matrix
-
inverse
Returns the inverse of this matrix.- Returns:
- the resulting matrix
-
multiply
Returns a new matrix that is the result of multiplying this matrix by the given matrix.- Parameters:
by- the matrix to multiply by- Returns:
- the resulting matrix
-
rotate
Returns a new matrix that is the result of rotating this matrix by the given angle.- Parameters:
angle- the rotation angle in degrees- Returns:
- the resulting matrix
-
rotateFromVector
Returns a new matrix that is the result of rotating this matrix by the angle defined by the given vector.- Parameters:
x- the x-coordinate of the vectory- the y-coordinate of the vector- Returns:
- the resulting matrix
-
scale
Returns a new matrix that is the result of scaling this matrix uniformly by the given factor.- Parameters:
factor- the scale factor- Returns:
- the resulting matrix
-
scaleNonUniform
Returns a new matrix that is the result of scaling this matrix non-uniformly by the given factors along each axis.- Parameters:
factorX- the scale factor along the x-axisfactorY- the scale factor along the y-axis- Returns:
- the resulting matrix
-
skewX
Returns a new matrix that is the result of skewing this matrix along the x-axis by the given angle.- Parameters:
angle- the skew angle in degrees- Returns:
- the resulting matrix
-
skewY
Returns a new matrix that is the result of skewing this matrix along the y-axis by the given angle.- Parameters:
angle- the skew angle in degrees- Returns:
- the resulting matrix
-
translate
Returns a new matrix that is the result of translating this matrix by the given distances.- Parameters:
x- the distance to translate along the x-axisy- the distance to translate along the y-axis- Returns:
- the resulting matrix
-