Class SVGAnimationImpl

All Implemented Interfaces:
Cloneable, EventTarget, GlobalEventHandlers, HTMLElement, ModelNode, ElementTargetAttributes, ElementTime, ElementTimeControl, SMILAnimation, SMILElement, SVGElement, Element, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode, CSSPropertiesContext, ScriptableDelegate
Direct Known Subclasses:
SVGAnimationElementImpl

public class SVGAnimationImpl extends SVGElementImpl implements SMILAnimation

SVGAnimationImpl class.

  • Constructor Details

    • SVGAnimationImpl

      public SVGAnimationImpl(String name)

      Constructor for SVGAnimationImpl.

      Parameters:
      name - a String object.
  • Method Details

    • getAttributeName

      public String getAttributeName()
      The name of the target attribute.
      Specified by:
      getAttributeName in interface ElementTargetAttributes
      Returns:
      a String object.
    • setAttributeName

      public void setAttributeName(String attributeName)

      setAttributeName.

      Specified by:
      setAttributeName in interface ElementTargetAttributes
      Parameters:
      attributeName - a String object.
    • getType

      public short getType()

      getType.

      Returns:
      a short.
    • getAttributeType

      public short getAttributeType()
      A code representing the value of the attributeType attribute, as defined above. Default value is ATTRIBUTE_TYPE_CODE .
      Specified by:
      getAttributeType in interface ElementTargetAttributes
      Returns:
      a short.
    • setAttributeType

      public void setAttributeType(short attributeType)

      setAttributeType.

      Specified by:
      setAttributeType in interface ElementTargetAttributes
      Parameters:
      attributeType - a short.
    • getBegin

      public TimeList getBegin()
      The desired value (as a list of times) of the begin instant of this node.
      Specified by:
      getBegin in interface ElementTime
      Returns:
      a TimeList object.
    • getEnd

      public TimeList getEnd()
      The list of active ends for this node.
      Specified by:
      getEnd in interface ElementTime
      Returns:
      a TimeList object.
    • getDur

      public float getDur()
      The desired simple duration value of this node in seconds. Negative value means "indefinite".
      Specified by:
      getDur in interface ElementTime
      Returns:
      a float.
    • setDur

      public void setDur(float dur)

      setDur.

      Specified by:
      setDur in interface ElementTime
      Parameters:
      dur - a float.
    • getFill

      public String getFill()
      A code representing the value of the fill attribute, as defined above. Default value is FILL_REMOVE .
      Specified by:
      getFill in interface ElementTime
      Returns:
      a String object.
    • setFill

      public void setFill(String fill)

      setFill.

      Specified by:
      setFill in interface ElementTime
      Parameters:
      fill - a String object.
    • getRepeatCount

      public float getRepeatCount()
      The repeatCount attribute causes the element to play repeatedly (loop) for the specified number of times. A negative value repeat the element indefinitely. Default value is 0 (unspecified).
      Specified by:
      getRepeatCount in interface ElementTime
      Returns:
      a float.
    • setRepeatCount

      public void setRepeatCount(float repeatCount)

      setRepeatCount.

      Specified by:
      setRepeatCount in interface ElementTime
      Parameters:
      repeatCount - a float.
    • getRepeatDur

      public float getRepeatDur()
      The repeatDur causes the element to play repeatedly (loop) for the specified duration in milliseconds. Negative means "indefinite".
      Specified by:
      getRepeatDur in interface ElementTime
      Returns:
      a float.
    • setRepeatDur

      public void setRepeatDur(float repeatDur)

      setRepeatDur.

      Specified by:
      setRepeatDur in interface ElementTime
      Parameters:
      repeatDur - a float.
    • beginElement

      public boolean beginElement()
      Causes this element to begin the local timeline (subject to sync constraints).
      Specified by:
      beginElement in interface ElementTime
      Specified by:
      beginElement in interface ElementTimeControl
      Returns:
      true if the method call was successful and the element was begun. false if the method call failed. Possible reasons for failure include: The element doesn't support the beginElement method. (the beginEvent attribute is not set to "undefinite" ) The element is already active and can't be restart when it is active. (the restart attribute is set to "whenNotActive" ) The element is active or has been active and can't be restart. (the restart attribute is set to "never" ).
    • endElement

      public boolean endElement()
      Causes this element to end the local timeline (subject to sync constraints).
      Specified by:
      endElement in interface ElementTime
      Specified by:
      endElement in interface ElementTimeControl
      Returns:
      true if the method call was successful and the element was endeed. false if method call failed. Possible reasons for failure include: The element doesn't support the endElement method. (the endEvent attribute is not set to "undefinite" ) The element is not active.
    • beginElementAt

      public boolean beginElementAt(float offset)
      Causes this element to begin the local timeline (subject to sync constraints), at the passed offset from the current time when the method is called. If the offset is >= 0, the semantics are equivalent to an event-base begin with the specified offset. If the offset is < 0, the semantics are equivalent to beginElement(), but the element active duration is evaluated as though the element had begun at the passed (negative) offset from the current time when the method is called.
      Specified by:
      beginElementAt in interface ElementTimeControl
      Parameters:
      offset - The offset in seconds at which to begin the element.
      Returns:
      true if the method call was successful and the element was begun. false if the method call failed. Possible reasons for failure include: The element doesn't support the beginElementAt method. (the begin attribute is not set to "indefinite" ) The element is already active and can't be restart when it is active. (the restart attribute is set to "whenNotActive" ) The element is active or has been active and can't be restart. (the restart attribute is set to "never" ).
    • endElementAt

      public boolean endElementAt(float offset)
      Causes this element to end the local timeline (subject to sync constraints) at the specified offset from the current time when the method is called.
      Specified by:
      endElementAt in interface ElementTimeControl
      Parameters:
      offset - The offset in seconds at which to end the element. Must be >= 0.
      Returns:
      true if the method call was successful and the element was ended. false if method call failed. Possible reasons for failure include: The element doesn't support the endElementAt method. (the end attribute is not set to "indefinite" ) The element is not active.
    • getValues

      public String getValues()
      A DOMString representing the value of the values attribute.
      Specified by:
      getValues in interface SMILAnimation
      Returns:
      a String object.
    • setValues

      public void setValues(String values)

      setValues.

      Specified by:
      setValues in interface SMILAnimation
      Parameters:
      values - a String object.
    • getFrom

      public String getFrom()
      A DOMString representing the value of the from attribute.
      Specified by:
      getFrom in interface SMILAnimation
      Returns:
      a String object.
    • setFrom

      public void setFrom(String from)

      setFrom.

      Specified by:
      setFrom in interface SMILAnimation
      Parameters:
      from - a String object.
    • getTo

      public String getTo()
      A DOMString representing the value of the to attribute.
      Specified by:
      getTo in interface SMILAnimation
      Returns:
      a String object.
    • setTo

      public void setTo(String to)

      setTo.

      Specified by:
      setTo in interface SMILAnimation
      Parameters:
      to - a String object.
    • getBy

      public String getBy()
      A DOMString representing the value of the by attribute.
      Specified by:
      getBy in interface SMILAnimation
      Returns:
      a String object.
    • setBy

      public void setBy(String by)

      setBy.

      Specified by:
      setBy in interface SMILAnimation
      Parameters:
      by - a String object.
    • getAnimate

      protected SVGAnimateImpl getAnimate()

      Getter for the field animate.

      Returns:
      a SVGAnimateImpl object.
    • setAnimate

      protected void setAnimate(SVGAnimateImpl animate)

      Setter for the field animate.

      Parameters:
      animate - a SVGAnimateImpl object.