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) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addActivateHandler(ActivateHandler handler)
Adds a
ActivateHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addBeginHandler(BeginHandler handler)
Adds a
BeginHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragEndHandler(com.google.gwt.event.dom.client.DragEndHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragEnterHandler(com.google.gwt.event.dom.client.DragEnterHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragHandler(com.google.gwt.event.dom.client.DragHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragLeaveHandler(com.google.gwt.event.dom.client.DragLeaveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragOverHandler(com.google.gwt.event.dom.client.DragOverHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDragStartHandler(com.google.gwt.event.dom.client.DragStartHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addDropHandler(com.google.gwt.event.dom.client.DropHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addEndHandler(EndHandler handler)
Adds a
EndHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addFocusInHandler(FocusInHandler handler)
Adds a
FocusInHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addFocusOutHandler(FocusOutHandler handler)
Adds a
FocusOutHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addLoadHandler(com.google.gwt.event.dom.client.LoadHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addRepeatHandler(RepeatHandler handler)
Adds a
RepeatHandler handler. |
com.google.gwt.event.shared.HandlerRegistration |
addTouchCancelHandler(com.google.gwt.event.dom.client.TouchCancelHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchEndHandler(com.google.gwt.event.dom.client.TouchEndHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchMoveHandler(com.google.gwt.event.dom.client.TouchMoveHandler handler) |
com.google.gwt.event.shared.HandlerRegistration |
addTouchStartHandler(com.google.gwt.event.dom.client.TouchStartHandler handler) |
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. |
OMSVGElement |
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.
|
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
protected OMSVGAnimationElement(SVGAnimationElement ot)
public final OMSVGElement 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()
.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 com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler
in interface com.google.gwt.event.dom.client.HasClickHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragEndHandler(com.google.gwt.event.dom.client.DragEndHandler handler)
addDragEndHandler
in interface com.google.gwt.event.dom.client.HasDragEndHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragEnterHandler(com.google.gwt.event.dom.client.DragEnterHandler handler)
addDragEnterHandler
in interface com.google.gwt.event.dom.client.HasDragEnterHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragHandler(com.google.gwt.event.dom.client.DragHandler handler)
addDragHandler
in interface com.google.gwt.event.dom.client.HasDragHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragLeaveHandler(com.google.gwt.event.dom.client.DragLeaveHandler handler)
addDragLeaveHandler
in interface com.google.gwt.event.dom.client.HasDragLeaveHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragOverHandler(com.google.gwt.event.dom.client.DragOverHandler handler)
addDragOverHandler
in interface com.google.gwt.event.dom.client.HasDragOverHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDragStartHandler(com.google.gwt.event.dom.client.DragStartHandler handler)
addDragStartHandler
in interface com.google.gwt.event.dom.client.HasDragStartHandlers
public final com.google.gwt.event.shared.HandlerRegistration addDropHandler(com.google.gwt.event.dom.client.DropHandler handler)
addDropHandler
in interface com.google.gwt.event.dom.client.HasDropHandlers
public final com.google.gwt.event.shared.HandlerRegistration addLoadHandler(com.google.gwt.event.dom.client.LoadHandler handler)
addLoadHandler
in interface com.google.gwt.event.dom.client.HasLoadHandlers
public final com.google.gwt.event.shared.HandlerRegistration addMouseDownHandler(com.google.gwt.event.dom.client.MouseDownHandler handler)
addMouseDownHandler
in interface com.google.gwt.event.dom.client.HasMouseDownHandlers
public final com.google.gwt.event.shared.HandlerRegistration addMouseMoveHandler(com.google.gwt.event.dom.client.MouseMoveHandler handler)
addMouseMoveHandler
in interface com.google.gwt.event.dom.client.HasMouseMoveHandlers
public final com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
addMouseOutHandler
in interface com.google.gwt.event.dom.client.HasMouseOutHandlers
public final com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
addMouseOverHandler
in interface com.google.gwt.event.dom.client.HasMouseOverHandlers
public final com.google.gwt.event.shared.HandlerRegistration addMouseUpHandler(com.google.gwt.event.dom.client.MouseUpHandler handler)
addMouseUpHandler
in interface com.google.gwt.event.dom.client.HasMouseUpHandlers
public final com.google.gwt.event.shared.HandlerRegistration addTouchCancelHandler(com.google.gwt.event.dom.client.TouchCancelHandler handler)
addTouchCancelHandler
in interface com.google.gwt.event.dom.client.HasTouchCancelHandlers
public final com.google.gwt.event.shared.HandlerRegistration addTouchEndHandler(com.google.gwt.event.dom.client.TouchEndHandler handler)
addTouchEndHandler
in interface com.google.gwt.event.dom.client.HasTouchEndHandlers
public final com.google.gwt.event.shared.HandlerRegistration addTouchMoveHandler(com.google.gwt.event.dom.client.TouchMoveHandler handler)
addTouchMoveHandler
in interface com.google.gwt.event.dom.client.HasTouchMoveHandlers
public final com.google.gwt.event.shared.HandlerRegistration addTouchStartHandler(com.google.gwt.event.dom.client.TouchStartHandler handler)
addTouchStartHandler
in interface com.google.gwt.event.dom.client.HasTouchStartHandlers
public final com.google.gwt.event.shared.HandlerRegistration addActivateHandler(ActivateHandler handler)
HasActivateHandlers
ActivateHandler
handler.addActivateHandler
in interface HasActivateHandlers
handler
- the activate handlerHandlerRegistration
used to remove this handlerpublic final com.google.gwt.event.shared.HandlerRegistration addBeginHandler(BeginHandler handler)
HasBeginHandlers
BeginHandler
handler.addBeginHandler
in interface HasBeginHandlers
handler
- the begin handlerHandlerRegistration
used to remove this handlerpublic final com.google.gwt.event.shared.HandlerRegistration addEndHandler(EndHandler handler)
HasEndHandlers
EndHandler
handler.addEndHandler
in interface HasEndHandlers
handler
- the end handlerHandlerRegistration
used to remove this handlerpublic final com.google.gwt.event.shared.HandlerRegistration addFocusInHandler(FocusInHandler handler)
HasFocusInHandlers
FocusInHandler
handler.addFocusInHandler
in interface HasFocusInHandlers
handler
- the focusin handlerHandlerRegistration
used to remove this handlerpublic final com.google.gwt.event.shared.HandlerRegistration addFocusOutHandler(FocusOutHandler handler)
HasFocusOutHandlers
FocusOutHandler
handler.addFocusOutHandler
in interface HasFocusOutHandlers
handler
- the focusout handlerHandlerRegistration
used to remove this handlerpublic final com.google.gwt.event.shared.HandlerRegistration addRepeatHandler(RepeatHandler handler)
HasRepeatHandlers
RepeatHandler
handler.addRepeatHandler
in interface HasRepeatHandlers
handler
- the repeat handlerHandlerRegistration
used to remove this handlerCopyright © 2018. All Rights Reserved.