Class SVGOMAnimatedPathData

    • Constructor Detail

      • SVGOMAnimatedPathData

        public SVGOMAnimatedPathData​(AbstractElement elt,
                                     java.lang.String ns,
                                     java.lang.String ln,
                                     java.lang.String defaultValue)
        Creates a new SVGOMAnimatedPathData.
        Parameters:
        elt - The associated element.
        ns - The attribute's namespace URI.
        ln - The attribute's local name.
        defaultValue - The default value if the attribute is not specified.
    • Method Detail

      • getAnimatedNormalizedPathSegList

        public org.w3c.dom.svg.SVGPathSegList getAnimatedNormalizedPathSegList()
        DOM: Implements SVGAnimatedPathData.getAnimatedNormalizedPathSegList().
        Specified by:
        getAnimatedNormalizedPathSegList in interface org.w3c.dom.svg.SVGAnimatedPathData
      • getAnimatedPathSegList

        public org.w3c.dom.svg.SVGPathSegList getAnimatedPathSegList()
        DOM: Implements SVGAnimatedPathData.getAnimatedPathSegList().
        Specified by:
        getAnimatedPathSegList in interface org.w3c.dom.svg.SVGAnimatedPathData
      • getNormalizedPathSegList

        public org.w3c.dom.svg.SVGPathSegList getNormalizedPathSegList()
        DOM: Implements SVGAnimatedPathData.getNormalizedPathSegList().

        Returns the SVGPathSegList mapping the normalized static 'd' attribute of the element.

        A normalized path is composed only of absolute moveto, lineto and cubicto path segments (M, L and C). Using this subset, the path description can be represented with fewer segment types. Be aware that the normalized 'd' attribute will be a larger String that the original.

        Relative values are transformed into absolute, quadratic curves are promoted to cubic curves, and arcs are converted into one or more cubic curves (one per quadrant).

        Modifications to the normalized SVGPathSegList will result in substituting the original path with a set of normalized path segments.

        Specified by:
        getNormalizedPathSegList in interface org.w3c.dom.svg.SVGAnimatedPathData
        Returns:
        a path segment list containing the normalized version of the path.
      • getPathSegList

        public org.w3c.dom.svg.SVGPathSegList getPathSegList()
        DOM: Implements SVGAnimatedPathData.getPathSegList().
        Specified by:
        getPathSegList in interface org.w3c.dom.svg.SVGAnimatedPathData
      • check

        public void check()
        Throws an exception if the path data is malformed.
      • attrAdded

        public void attrAdded​(org.w3c.dom.Attr node,
                              java.lang.String newv)
        Called when an Attr node has been added.
        Specified by:
        attrAdded in interface LiveAttributeValue
      • attrModified

        public void attrModified​(org.w3c.dom.Attr node,
                                 java.lang.String oldv,
                                 java.lang.String newv)
        Called when an Attr node has been modified.
        Specified by:
        attrModified in interface LiveAttributeValue
      • attrRemoved

        public void attrRemoved​(org.w3c.dom.Attr node,
                                java.lang.String oldv)
        Called when an Attr node has been removed.
        Specified by:
        attrRemoved in interface LiveAttributeValue