public class SVGAnimationElement extends SVGElement
The SVGAnimationElement
interface
is the base interface for all of the animation element interfaces: SVGAnimateElement
, SVGSetElement
,
SVGAnimateColorElement
, SVGAnimateMotionElement
and SVGAnimateTransformElement
.
Unlike other SVG DOM interfaces, the SVG DOM does not specify convenience
DOM properties corresponding to the various language attributes on SVG's
animation elements. Specification of these convenience properties in a
way that will be compatible with future versions of SMIL Animation is expected
in a future version of SVG. The current method for accessing and modifying
the attributes on the animation elements is to use the standard getAttribute
,
setAttribute
, getAttributeNS
and setAttributeNS
defined in DOM
Level 2 Core [DOM2].
Modifier | Constructor and Description |
---|---|
protected |
SVGAnimationElement() |
Modifier and Type | Method and Description |
---|---|
void |
beginElement()
Creates a begin instance time for the current time.
|
void |
beginElementAt(float offset)
Creates a begin instance time for the current time plus the specified offset.
|
void |
endElement()
Creates an end instance time for the current time.
|
void |
endElementAt(float offset)
Creates a end instance time for the current time plus the specified offset.
|
float |
getCurrentTime()
Returns the current time in seconds relative to time zero for the given
time container.
|
OMSVGAnimatedBoolean |
getExternalResourcesRequired()
Corresponds to attribute
ISVGExternalResourcesRequired.getExternalResourcesRequired()
on the given element. |
OMSVGStringList |
getRequiredExtensions()
Corresponds to attribute
ISVGTests.getRequiredExtensions()
on the given element. |
OMSVGStringList |
getRequiredFeatures()
Corresponds to attribute
ISVGTests.getRequiredFeatures()
on the given element. |
float |
getSimpleDuration()
Returns the number of seconds for the simple duration for this animation.
|
float |
getStartTime()
Returns the begin time, in seconds, for this animation element's current
interval, if it exists, regardless of whether the interval has begun yet.
|
OMSVGStringList |
getSystemLanguage()
Corresponds to attribute
ISVGTests.getSystemLanguage()
on the given element. |
SVGElement |
getTargetElement()
The element which is being animated.
|
boolean |
hasExtension(String extension)
Returns true if the user agent supports the given extension, specified
by a URI.
|
getClassName_, getMarkup, getOwnerSVGElement, getViewportElement, getXmlbase, setXmlbase
addClassName, as, as, blur, dispatchEvent, focus, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getAttribute, getClassName, getClientHeight, getClientWidth, getDir, getDraggable, getElementsByTagName, getFirstChildElement, getId, getInnerHTML, getInnerText, getLang, getNextSiblingElement, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getPreviousSiblingElement, getPropertyBoolean, getPropertyDouble, getPropertyInt, getPropertyJSO, getPropertyObject, getPropertyString, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getString, getStyle, getTabIndex, getTagName, getTitle, hasAttribute, hasClassName, hasTagName, is, is, removeAttribute, removeClassName, replaceClassName, scrollIntoView, setAttribute, setClassName, setDir, setDraggable, setId, setInnerHTML, setInnerSafeHtml, setInnerText, setLang, setPropertyBoolean, setPropertyDouble, setPropertyInt, setPropertyJSO, setPropertyObject, setPropertyString, setScrollLeft, setScrollTop, setTabIndex, setTitle, toggleClassName
appendChild, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, isOrHasChild, removeAllChildren, removeChild, removeFromParent, replaceChild, setNodeValue
public final SVGElement getTargetElement()
public final float getStartTime() throws com.google.gwt.core.client.JavaScriptException
DOMException(INVALID_STATE_ERR)
- The animation element does not
have a current interval.com.google.gwt.core.client.JavaScriptException
public final float getCurrentTime()
public final float getSimpleDuration() throws com.google.gwt.core.client.JavaScriptException
DOMException(NOT_SUPPORTED_ERR)
- The simple duration is not determined
on the given element.com.google.gwt.core.client.JavaScriptException
public final void beginElement()
beginElementAt(0)
.public final void beginElementAt(float offset)
offset
- The offset from the current document time, in seconds, at
which to begin the element.public final void endElement()
endElementAt(0)
.public final void endElementAt(float offset)
offset
- offset from the current document time, in seconds, at which
to end the element.public final OMSVGAnimatedBoolean getExternalResourcesRequired()
ISVGExternalResourcesRequired.getExternalResourcesRequired()
on the given element. Note that the SVG DOM defines the attribute ISVGExternalResourcesRequired.getExternalResourcesRequired()
as being of type OMSVGAnimatedBoolean
, whereas
the SVG language definition says that ISVGExternalResourcesRequired.getExternalResourcesRequired()
is not animated. Because the SVG language definition states that ISVGExternalResourcesRequired.getExternalResourcesRequired()
cannot be animated, the OMSVGAnimatedBoolean.getAnimVal()
will always be the same as the OMSVGAnimatedBoolean.getBaseVal()
.public final OMSVGStringList getRequiredFeatures()
ISVGTests.getRequiredFeatures()
on the given element.public final OMSVGStringList getRequiredExtensions()
ISVGTests.getRequiredExtensions()
on the given element.public final OMSVGStringList getSystemLanguage()
ISVGTests.getSystemLanguage()
on the given element.public final boolean hasExtension(String extension)
extension
- The name of the extension, expressed as a URI.Copyright © 2018. All Rights Reserved.