org.bootchart.renderer
クラス ImageRenderer

java.lang.Object
  上位を拡張 org.bootchart.renderer.Renderer
      上位を拡張 org.bootchart.renderer.ImageRenderer
直系の既知のサブクラス:
EPSRenderer, PNGRenderer

public abstract class ImageRenderer
extends Renderer

ImageRenderer renders the boot chart as a Java 2D BufferedImage. Subclasses may then encode the image in different formats (e.g. PNG or EPS).


フィールドの概要
protected  boolean allowAlpha
          Whether to allow usage of transparency.
protected  Graphics g
           
protected  BufferedImage img
           
 
コンストラクタの概要
ImageRenderer()
           
 
メソッドの概要
abstract  String getFileSuffix()
          Returns the file suffix to use for the rendered image.
 void render(Properties headers, BootStats bootStats, OutputStream os)
          Render the chart.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

g

protected Graphics g

img

protected BufferedImage img

allowAlpha

protected boolean allowAlpha
Whether to allow usage of transparency. Certain renderers (e.g. EPS) will produce better results if the colors aren't transparent.

コンストラクタの詳細

ImageRenderer

public ImageRenderer()
メソッドの詳細

render

public void render(Properties headers,
                   BootStats bootStats,
                   OutputStream os)
            throws IOException
Render the chart.

定義:
クラス Renderer 内の render
パラメータ:
headers - header properties to include in the title banner
bootStats - boot statistics
os - the output stream to write t
例外:
IOException - if an I/O error occurs

getFileSuffix

public abstract String getFileSuffix()
クラス Renderer の記述:
Returns the file suffix to use for the rendered image.

定義:
クラス Renderer 内の getFileSuffix
戻り値:
file suffix