Package org.jrobin.graph
Class RrdGraphInfo
- java.lang.Object
-
- org.jrobin.graph.RrdGraphInfo
-
public class RrdGraphInfo extends Object
Class to represent successfully created JRobin graph. Objects of this class are created by methodRrdGraph.getRrdGraphInfo().
-
-
Constructor Summary
Constructors Constructor Description RrdGraphInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddPrintLine(String printLine)Stringdump()Dumps complete graph information.intgetByteCount()Returns the number of bytes in the graph filebyte[]getBytes()Returns graph bytesStringgetFilename()Returns filename of the graphintgetHeight()Returns total graph heightStringgetImgInfo()Returns image information requested byRrdGraphDef.setImageInfo(String)methodString[]getPrintLines()Returns PRINT lines requested byRrdGraphDef.print(String, String, String)method.intgetWidth()Returns total graph width
-
-
-
Method Detail
-
addPrintLine
void addPrintLine(String printLine)
-
getFilename
public String getFilename()
Returns filename of the graph- Returns:
- filename of the graph. '-' denotes in-memory graph (no file created)
-
getWidth
public int getWidth()
Returns total graph width- Returns:
- total graph width
-
getHeight
public int getHeight()
Returns total graph height- Returns:
- total graph height
-
getBytes
public byte[] getBytes()
Returns graph bytes- Returns:
- Graph bytes
-
getPrintLines
public String[] getPrintLines()
Returns PRINT lines requested byRrdGraphDef.print(String, String, String)method.- Returns:
- An array of formatted PRINT lines
-
getImgInfo
public String getImgInfo()
Returns image information requested byRrdGraphDef.setImageInfo(String)method- Returns:
- Image information
-
getByteCount
public int getByteCount()
Returns the number of bytes in the graph file- Returns:
- Length of the graph file
-
dump
public String dump()
Dumps complete graph information. Useful for debugging purposes.- Returns:
- String containing complete graph information
-
-