|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bootchart.renderer.CSSInliner
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.
Constructor Summary | |
CSSInliner()
|
Method Summary | |
static java.lang.String |
inline(java.lang.String svg,
java.io.File cssFile)
Parses the specified CSS file and inlines all style properties in the SVG content string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CSSInliner()
Method Detail |
public static java.lang.String inline(java.lang.String svg, java.io.File cssFile) throws java.io.FileNotFoundException, java.io.IOException
svg
- SVG contentscssFile
- CSS file to inline
java.io.FileNotFoundException
- if the CSS file cannot be found
java.io.IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |