Class SVGCSSStyler

  • All Implemented Interfaces:
    XMLConstants, SVGSyntax, CSSConstants, SVGConstants

    public class SVGCSSStyler
    extends java.lang.Object
    implements SVGSyntax
    This utility class converts a standard SVG document that uses attribute into one that uses the CSS style attribute instead.
    Version:
    $Id: SVGCSSStyler.java 1804130 2017-08-04 14:41:11Z ssteiner $
    • Constructor Detail

      • SVGCSSStyler

        public SVGCSSStyler()
    • Method Detail

      • style

        public static void style​(org.w3c.dom.Node node)
        Invoking this method removes all the styling attributes (such as 'fill' or 'fill-opacity') from the input element and its descendant and replaces them with their CSS2 property counterparts.
        Parameters:
        node - SVG Node to be converted to use style