public abstract class OMSVGAnimationElement extends OMSVGElement implements HasGraphicalHandlers, HasAnimationHandlers, ISVGTests, ISVGExternalResourcesRequired
The OMSVGAnimationElement
interface is
the base interface for all of the animation element interfaces: OMSVGAnimateElement
, OMSVGSetElement
,
OMSVGAnimateColorElement
, OMSVGAnimateMotionElement
and OMSVGAnimateTransformElement
.
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 |
OMSVGAnimationElement(SVGAnimationElement ot) |
addClassNameBaseVal, getClassName, getMarkup, getOwnerSVGElement, getStyle, getViewportElement, getXmlbase, removeClassNameBaseVal, replaceClassNameBaseVal, setClassNameBaseVal, setId, setXmlbase
getAttribute, getAttributeNode, getAttributeNS, getAttributes, getElement, getElementsByTagName, getElementsByTagNameNS, getId, getTagName, hasAttribute, hasAttributeNS, removeAttribute, setAttribute, setAttributeNode, setAttributeNS
addDomHandler, addHandler, appendChild, cleanup, cloneNode, convert, convertList, dispatch, fireEvent, getChildNodes, getEventBus, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
protected OMSVGAnimationElement(SVGAnimationElement ot)
public final OMSVGElement getTargetElement()
public final float getStartTime() throws JavaScriptException
DOMException(INVALID_STATE_ERR)
- The animation element does not
have a current interval.JavaScriptException
public final float getCurrentTime()
public final float getSimpleDuration() throws JavaScriptException
DOMException(NOT_SUPPORTED_ERR)
- The simple duration is not determined
on the given element.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()
.getExternalResourcesRequired
in interface ISVGExternalResourcesRequired
public final OMSVGStringList getRequiredFeatures()
ISVGTests.getRequiredFeatures()
on the given element.getRequiredFeatures
in interface ISVGTests
public final OMSVGStringList getRequiredExtensions()
ISVGTests.getRequiredExtensions()
on the given element.getRequiredExtensions
in interface ISVGTests
public final OMSVGStringList getSystemLanguage()
ISVGTests.getSystemLanguage()
on the given element.getSystemLanguage
in interface ISVGTests
public final boolean hasExtension(String extension)
hasExtension
in interface ISVGTests
extension
- The name of the extension, expressed as a URI.public final HandlerRegistration addClickHandler(ClickHandler handler)
addClickHandler
in interface HasClickHandlers
public final HandlerRegistration addDragEndHandler(DragEndHandler handler)
addDragEndHandler
in interface HasDragEndHandlers
public final HandlerRegistration addDragEnterHandler(DragEnterHandler handler)
addDragEnterHandler
in interface HasDragEnterHandlers
public final HandlerRegistration addDragHandler(DragHandler handler)
addDragHandler
in interface HasDragHandlers
public final HandlerRegistration addDragLeaveHandler(DragLeaveHandler handler)
addDragLeaveHandler
in interface HasDragLeaveHandlers
public final HandlerRegistration addDragOverHandler(DragOverHandler handler)
addDragOverHandler
in interface HasDragOverHandlers
public final HandlerRegistration addDragStartHandler(DragStartHandler handler)
addDragStartHandler
in interface HasDragStartHandlers
public final HandlerRegistration addDropHandler(DropHandler handler)
addDropHandler
in interface HasDropHandlers
public final HandlerRegistration addLoadHandler(LoadHandler handler)
addLoadHandler
in interface HasLoadHandlers
public final HandlerRegistration addMouseDownHandler(MouseDownHandler handler)
addMouseDownHandler
in interface HasMouseDownHandlers
public final HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler)
addMouseMoveHandler
in interface HasMouseMoveHandlers
public final HandlerRegistration addMouseOutHandler(MouseOutHandler handler)
addMouseOutHandler
in interface HasMouseOutHandlers
public final HandlerRegistration addMouseOverHandler(MouseOverHandler handler)
addMouseOverHandler
in interface HasMouseOverHandlers
public final HandlerRegistration addMouseUpHandler(MouseUpHandler handler)
addMouseUpHandler
in interface HasMouseUpHandlers
public final HandlerRegistration addTouchCancelHandler(TouchCancelHandler handler)
addTouchCancelHandler
in interface HasTouchCancelHandlers
public final HandlerRegistration addTouchEndHandler(TouchEndHandler handler)
addTouchEndHandler
in interface HasTouchEndHandlers
public final HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler)
addTouchMoveHandler
in interface HasTouchMoveHandlers
public final HandlerRegistration addTouchStartHandler(TouchStartHandler handler)
addTouchStartHandler
in interface HasTouchStartHandlers
public final HandlerRegistration addActivateHandler(ActivateHandler handler)
HasActivateHandlers
ActivateHandler
handler.addActivateHandler
in interface HasActivateHandlers
handler
- the activate handlerHandlerRegistration
used to remove this handlerpublic final HandlerRegistration addBeginHandler(BeginHandler handler)
HasBeginHandlers
BeginHandler
handler.addBeginHandler
in interface HasBeginHandlers
handler
- the begin handlerHandlerRegistration
used to remove this handlerpublic final HandlerRegistration addEndHandler(EndHandler handler)
HasEndHandlers
EndHandler
handler.addEndHandler
in interface HasEndHandlers
handler
- the end handlerHandlerRegistration
used to remove this handlerpublic final HandlerRegistration addFocusInHandler(FocusInHandler handler)
HasFocusInHandlers
FocusInHandler
handler.addFocusInHandler
in interface HasFocusInHandlers
handler
- the focusin handlerHandlerRegistration
used to remove this handlerpublic final HandlerRegistration addFocusOutHandler(FocusOutHandler handler)
HasFocusOutHandlers
FocusOutHandler
handler.addFocusOutHandler
in interface HasFocusOutHandlers
handler
- the focusout handlerHandlerRegistration
used to remove this handlerpublic final HandlerRegistration addRepeatHandler(RepeatHandler handler)
HasRepeatHandlers
RepeatHandler
handler.addRepeatHandler
in interface HasRepeatHandlers
handler
- the repeat handlerHandlerRegistration
used to remove this handler