Class SVGCSSStyler

java.lang.Object
org.apache.batik.svggen.SVGCSSStyler
All Implemented Interfaces:
XMLConstants, SVGSyntax, CSSConstants, SVGConstants

public class SVGCSSStyler extends 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 $
  • Field Details

  • Constructor Details

    • SVGCSSStyler

      public SVGCSSStyler()
  • Method Details

    • style

      public static void style(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