org.jrobin.graph

Class RrdGraphInfo

public class RrdGraphInfo extends Object

Class to represent successfully created JRobin graph. Objects of this class are created by method getRrdGraphInfo.
Method Summary
Stringdump()
Dumps complete graph information.
intgetByteCount()
Returns the number of bytes in the graph file
byte[]getBytes()
Returns graph bytes
StringgetFilename()
Returns filename of the graph
intgetHeight()
Returns total graph height
StringgetImgInfo()
Returns image information requested by setImageInfo method
String[]getPrintLines()
Returns PRINT lines requested by RrdGraphDef method.
intgetWidth()
Returns total graph width

Method Detail

dump

public String dump()
Dumps complete graph information. Useful for debugging purposes.

Returns: String containing complete graph information

getByteCount

public int getByteCount()
Returns the number of bytes in the graph file

Returns: Length of the graph file

getBytes

public byte[] getBytes()
Returns graph bytes

Returns: Graph bytes

getFilename

public String getFilename()
Returns filename of the graph

Returns: filename of the graph. '-' denotes in-memory graph (no file created)

getHeight

public int getHeight()
Returns total graph height

Returns: total graph height

getImgInfo

public String getImgInfo()
Returns image information requested by setImageInfo method

Returns: Image information

getPrintLines

public String[] getPrintLines()
Returns PRINT lines requested by RrdGraphDef method.

Returns: An array of formatted PRINT lines

getWidth

public int getWidth()
Returns total graph width

Returns: total graph width