org.bootchart.renderer
クラス CSSInliner

java.lang.Object
  上位を拡張 org.bootchart.renderer.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.


コンストラクタの概要
CSSInliner()
           
 
メソッドの概要
static String inline(String svg, File cssFile)
          Parses the specified CSS file and inlines all style properties in the SVG content string.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CSSInliner

public CSSInliner()
メソッドの詳細

inline

public static String inline(String svg,
                            File cssFile)
                     throws FileNotFoundException,
                            IOException
Parses the specified CSS file and inlines all style properties in the SVG content string.

パラメータ:
svg - SVG contents
cssFile - CSS file to inline
戻り値:
the SVG contents with inlines style
例外:
FileNotFoundException - if the CSS file cannot be found
IOException - if an I/O error occurs