com.aspose.html.dom.svg

Class SVGAnimationElement

    • Constructor Detail

      • SVGAnimationElement

        public SVGAnimationElement(com.aspose.html.dom.DOMName name,
                                   Document doc)

        Initializes a new instance of the SVGElement class.

        Parameters:
        name - The element name.
        doc - The document.
    • Method Detail

      • getRequiredFeatures

        public SVGStringList getRequiredFeatures()

        Corresponds to attribute ‘requiredFeatures’ on the given element.

        Value: The required features.
        Specified by:
        getRequiredFeatures in interface ISVGTests
      • getRequiredExtensions

        public SVGStringList getRequiredExtensions()

        Corresponds to attribute ‘requiredExtensions’ on the given element.

        Value: The required extensions.
        Specified by:
        getRequiredExtensions in interface ISVGTests
      • getSystemLanguage

        public SVGStringList getSystemLanguage()

        Corresponds to attribute ‘systemLanguage’ on the given element.

        Value: The system language.
        Specified by:
        getSystemLanguage in interface ISVGTests
      • beginElement

        @DOMNameAttribute(name="beginElement")
        public void beginElement()

        Creates a begin instance time for the current time. The new instance time is added to the begin instance times list. The behavior of this method is equivalent to beginElementAt(0).

      • beginElementAt

        @DOMNameAttribute(name="beginElementAt")
        public void beginElementAt(float offset)

        Creates a begin instance time for the current time plus the specified offset. The new instance time is added to the begin instance times list.

        Parameters:
        offset - The offset from the current document time, in seconds, at which to begin the element.
      • endElement

        @DOMNameAttribute(name="endElement")
        public void endElement()

        Creates an end instance time for the current time. The new instance time is added to the end instance times list. The behavior of this method is equivalent to endElementAt(0).

      • endElementAt

        @DOMNameAttribute(name="endElementAt")
        public void endElementAt(float offset)

        Creates a end instance time for the current time plus the specified offset. The new instance time is added to the end instance times list.

        Parameters:
        offset - offset from the current document time, in seconds, at which to end the element.
      • getTargetElement

        @DOMNameAttribute(name="targetElement")
        public SVGElement getTargetElement()

        The element which is being animated.

        Value: The target element.
      • getStartTime

        @DOMNameAttribute(name="getStartTime")
        public 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. If there is no current interval, then a DOMException with code INVALID_STATE_ERR is thrown.

        Returns:
        The start time, in seconds, of this animation element's current interval.
        Throws:
        DOMException - Code DOMException.INVALID_STATE_ERR. The animation element does not have a current interval.
      • getCurrentTime

        @DOMNameAttribute(name="getCurrentTime")
        public float getCurrentTime()

        Returns the current time in seconds relative to time zero for the given time container.

        Returns:
        The current time in seconds relative to time zero for the given time container.
      • getSimpleDuration

        @DOMNameAttribute(name="getSimpleDuration")
        public float getSimpleDuration()

        Returns the number of seconds for the simple duration for this animation. If the simple duration is undefined (e.g., the end time is indefinite), then an exception is raised.

        Returns:
        number of seconds for the simple duration for this animation.
        Throws:
        DOMException - Code DOMException.NOT_SUPPORTED_ERR. The simple duration is not determined on the given element.