Interface AnimationTarget

    • Method Detail

      • getElement

        org.w3c.dom.Element getElement()
        Returns the element.
      • updatePropertyValue

        void updatePropertyValue​(java.lang.String pn,
                                 AnimatableValue val)
        Updates a property value in this target.
      • updateAttributeValue

        void updateAttributeValue​(java.lang.String ns,
                                  java.lang.String ln,
                                  AnimatableValue val)
        Updates an attribute value in this target.
      • updateOtherValue

        void updateOtherValue​(java.lang.String type,
                              AnimatableValue val)
        Updates a 'other' animation value in this target.
      • getUnderlyingValue

        AnimatableValue getUnderlyingValue​(java.lang.String ns,
                                           java.lang.String ln)
        Returns the underlying value of an animatable XML attribute.
      • getPercentageInterpretation

        short getPercentageInterpretation​(java.lang.String ns,
                                          java.lang.String an,
                                          boolean isCSS)
        Gets how percentage values are interpreted by the given attribute or property.
      • useLinearRGBColorInterpolation

        boolean useLinearRGBColorInterpolation()
        Returns whether color interpolations should be done in linear RGB color space rather than sRGB.
      • svgToUserSpace

        float svgToUserSpace​(float v,
                             short type,
                             short pcInterp)
        Converts the given SVG length into user units.
        Parameters:
        v - the SVG length value
        type - the SVG length units (one of the SVGLength.SVG_LENGTH_* constants)
        pcInterp - how to interpretet percentage values (one of the AnimationTarget.PERCENTAGE_* constants)
        Returns:
        the SVG value in user units
      • addTargetListener

        void addTargetListener​(java.lang.String ns,
                               java.lang.String an,
                               boolean isCSS,
                               AnimationTargetListener l)
        Adds a listener for changes to the given attribute value.
      • removeTargetListener

        void removeTargetListener​(java.lang.String ns,
                                  java.lang.String an,
                                  boolean isCSS,
                                  AnimationTargetListener l)
        Removes a listener for changes to the given attribute value.