
public class JsSVGAngle extends JsElementalMixinBase implements SVGAngle
SVG_ANGLETYPE_DEG, SVG_ANGLETYPE_GRAD, SVG_ANGLETYPE_RAD, SVG_ANGLETYPE_UNKNOWN, SVG_ANGLETYPE_UNSPECIFIEDSVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JsSVGAngle() |
| Modifier and Type | Method and Description |
|---|---|
void |
convertToSpecifiedUnits(int unitType)
Preserve the same underlying stored value, but reset the stored unit identifier to the given
unitType. |
int |
getUnitType()
The type of the value as specified by one of the SVG_ANGLETYPE_* constants defined on this interface.
|
float |
getValue()
The value as a floating point value, in user units.
|
String |
getValueAsString()
The value as a string value, in the units expressed by
unitType. |
float |
getValueInSpecifiedUnits()
The value as a floating point value, in the units expressed by
unitType. |
void |
newValueSpecifiedUnits(int unitType,
float valueInSpecifiedUnits)
Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.
|
void |
setValue(float param_value) |
void |
setValueAsString(String param_valueAsString) |
void |
setValueInSpecifiedUnits(float param_valueInSpecifiedUnits) |
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringintAt, lengthnumberAtpublic final int getUnitType()
SVGAnglegetUnitType in interface SVGAnglepublic final float getValue()
SVGAngleThe value as a floating point value, in user units. Setting this attribute will cause valueInSpecifiedUnits and valueAsString to be updated automatically to reflect this setting.
Exceptions on setting: a DOMException
with code NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute or when the object itself is read only.
public final String getValueAsString()
SVGAngleThe value as a string value, in the units expressed by unitType. Setting this attribute will cause value, valueInSpecifiedUnits and unitType to be updated automatically to reflect this setting.
Exceptions on setting:
DOMException
with code SYNTAX_ERR is raised if the assigned string cannot be parsed as a valid <angle>.DOMException
with code NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute or when the object itself is read only.getValueAsString in interface SVGAnglepublic final void setValueAsString(String param_valueAsString)
setValueAsString in interface SVGAnglepublic final float getValueInSpecifiedUnits()
SVGAngleThe value as a floating point value, in the units expressed by unitType. Setting this attribute will cause value and valueAsString to be updated automatically to reflect this setting.
Exceptions on setting: a DOMException
with code NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute or when the object itself is read only.
getValueInSpecifiedUnits in interface SVGAnglepublic final void setValueInSpecifiedUnits(float param_valueInSpecifiedUnits)
setValueInSpecifiedUnits in interface SVGAnglepublic final void convertToSpecifiedUnits(int unitType)
SVGAngleunitType. Object attributes unitType, valueInSpecifiedUnits and valueAsString might be modified as a result of this method.convertToSpecifiedUnits in interface SVGAnglepublic final void newValueSpecifiedUnits(int unitType,
float valueInSpecifiedUnits)
SVGAngleReset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.
Exceptions:
DOMException
with code NOT_SUPPORTED_ERR is raised if unitType is SVG_ANGLETYPE_UNKNOWN or not a valid unit type constant (one of the other SVG_ANGLETYPE_* constants defined on this interface).DOMException
with code NO_MODIFICATION_ALLOWED_ERR is raised when the length corresponds to a read only attribute or when the object itself is read only.newValueSpecifiedUnits in interface SVGAngleCopyright © 2016. All rights reserved.