org.jrobin.graph

Class RrdGraph

public class RrdGraph extends Object implements RrdGraphConstants

Class which actually creates JRobin graphs (does the hard work).
Constructor Summary
RrdGraph(RrdGraphDef gdef)
Creates graph from the corresponding RrdGraphDef object.
Method Summary
RrdGraphInfogetRrdGraphInfo()
Returns complete graph information in a single object.
voidrender(Graphics g)
Renders this graph onto graphing device

Constructor Detail

RrdGraph

public RrdGraph(RrdGraphDef gdef)
Creates graph from the corresponding RrdGraphDef object.

Parameters: gdef Graph definition

Throws: IOException Thrown in case of I/O error RrdException Thrown in case of JRobin related error

Method Detail

getRrdGraphInfo

public RrdGraphInfo getRrdGraphInfo()
Returns complete graph information in a single object.

Returns: Graph information (width, height, filename, image bytes, etc...)

render

public void render(Graphics g)
Renders this graph onto graphing device

Parameters: g Graphics handle