|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.dom.client.Node
com.google.gwt.dom.client.Element
org.vectomatic.dom.svg.impl.SVGElement
org.vectomatic.dom.svg.impl.SVGAnimationElement
public class SVGAnimationElement
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].
Field Summary |
---|
Fields inherited from class com.google.gwt.dom.client.Element |
---|
DRAGGABLE_AUTO, DRAGGABLE_FALSE, DRAGGABLE_TRUE |
Fields inherited from class com.google.gwt.dom.client.Node |
---|
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
protected |
SVGAnimationElement()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.vectomatic.dom.svg.impl.SVGElement |
---|
getClassName_, getMarkup, getOwnerSVGElement, getViewportElement, getXmlbase, setXmlbase |
Methods inherited from class com.google.gwt.dom.client.Element |
---|
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, 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 |
Methods inherited from class com.google.gwt.dom.client.Node |
---|
appendChild, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, isOrHasChild, removeChild, removeFromParent, replaceChild, setNodeValue |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SVGAnimationElement()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |