org.bootchart.renderer
Class CSSInliner
public
class
CSSInliner
extends Object
CSSInliner enables inlining of a CSS file into an SVG document. It is
used as a workaround for SVG renderers which do not support CSS (e.g.
ksvg). Note that the CSS parser and inliner are very simple and will only
work for class properties without any cascading.
| Method Summary |
| static String | inline(String svg, File cssFile)
Parses the specified CSS file and inlines all style properties in the
SVG content string.
|
public static String inline(String svg, File cssFile)
Parses the specified CSS file and inlines all style properties in the
SVG content string.
Parameters: svg SVG contents cssFile CSS file to inline
Returns: the SVG contents with inlines style
Throws: FileNotFoundException if the CSS file cannot be found IOException if an I/O error occurs