|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.svg.SVGMatrix
public class SVGMatrix
A JavaScript object for SVGMatrix.
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
SVGMatrix()
Creates an instance. |
|
SVGMatrix(Window scope)
Instantiates and configure scope and prototype. |
|
| Method Summary | |
|---|---|
SVGMatrix |
flipX()
Transforms the matrix. |
SVGMatrix |
flipY()
Transforms the matrix. |
double |
getA()
Gets the a entry of the matrix. |
double |
getB()
Gets the b entry of the matrix. |
double |
getC()
Gets the c entry of the matrix. |
double |
getD()
Gets the d entry of the matrix. |
double |
getE()
Gets the e entry of the matrix. |
double |
getF()
Gets the f entry of the matrix. |
SVGMatrix |
inverse()
Transforms the matrix. |
SVGMatrix |
multiply(SVGMatrix by)
Transforms the matrix. |
SVGMatrix |
rotate(double angle)
Rotates the matrix. |
SVGMatrix |
rotateFromVector(double x,
double y)
Transforms the matrix. |
SVGMatrix |
scale(double factor)
Transforms the matrix. |
SVGMatrix |
scaleNonUniform(double factorX,
double factorY)
Transforms the matrix. |
void |
setA(double newValue)
Sets the a entry of the matrix. |
void |
setB(double newValue)
Sets the b entry of the matrix. |
void |
setC(double newValue)
Sets the c entry of the matrix. |
void |
setD(double newValue)
Sets the d entry of the matrix. |
void |
setE(double newValue)
Sets the e entry of the matrix. |
void |
setF(double newValue)
Sets the f entry of the matrix. |
SVGMatrix |
skewX(double angle)
Transforms the matrix. |
SVGMatrix |
skewY(double angle)
Transforms the matrix. |
SVGMatrix |
translate(double x,
double y)
Translates the matrix. |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement, setParentScope |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setPrototype, size |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SVGMatrix()
public SVGMatrix(Window scope)
scope - the parent scope| Method Detail |
|---|
public double getA()
a entry of the matrix.
public double getB()
b entry of the matrix.
public double getC()
c entry of the matrix.
public double getD()
d entry of the matrix.
public double getE()
e entry of the matrix.
public double getF()
f entry of the matrix.
public void setA(double newValue)
a entry of the matrix.
newValue - the new value for the fieldpublic void setB(double newValue)
b entry of the matrix.
newValue - the new value for the fieldpublic void setC(double newValue)
c entry of the matrix.
newValue - the new value for the fieldpublic void setD(double newValue)
d entry of the matrix.
newValue - the new value for the fieldpublic void setE(double newValue)
e entry of the matrix.
newValue - the new value for the fieldpublic void setF(double newValue)
f entry of the matrix.
newValue - the new value for the fieldpublic SVGMatrix flipX()
public SVGMatrix flipY()
public SVGMatrix inverse()
public SVGMatrix multiply(SVGMatrix by)
by - the matrix to multiply by
public SVGMatrix rotate(double angle)
angle - the rotation angle
public SVGMatrix rotateFromVector(double x,
double y)
x - the x-coordinate of the vectory - the y-coordinate of the vector
public SVGMatrix scale(double factor)
factor - the scale factor
public SVGMatrix scaleNonUniform(double factorX,
double factorY)
factorX - the factor for the x-axisfactorY - the factor for the y-axis
public SVGMatrix skewX(double angle)
angle - the skew angle
public SVGMatrix skewY(double angle)
angle - the skew angle
public SVGMatrix translate(double x,
double y)
x - the distance along the x-axisy - the distance along the y-axis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||