org.bootchart.renderer

Class ImageRenderer

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).
Field Summary
protected booleanallowAlpha
Whether to allow usage of transparency.
protected Graphicsg
protected BufferedImageimg
Method Summary
abstract StringgetFileSuffix()
voidrender(Properties headers, BootStats bootStats, OutputStream os)
Render the chart.

Field Detail

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.

g

protected Graphics g

img

protected BufferedImage img

Method Detail

getFileSuffix

public abstract String getFileSuffix()

render

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

Parameters: headers header properties to include in the title banner bootStats boot statistics os the output stream to write t

Throws: IOException if an I/O error occurs