Package org.rrd4j.graph
Class RrdGraphInfo
java.lang.Object
org.rrd4j.graph.RrdGraphInfo
public class RrdGraphInfo extends Object
Class to represent successfully created Rrd4j graph. Objects of this class are created by method
RrdGraph.getRrdGraphInfo()
.-
Field Summary
-
Constructor Summary
Constructors Constructor Description RrdGraphInfo()
-
Method Summary
Modifier and Type Method Description (package private) void
addPrintLine(String printLine)
String
dump()
Dumps complete graph information.int
getByteCount()
Returns the number of bytes in the graph filebyte[]
getBytes()
Returns graph bytesString
getFilename()
Returns filename of the graphint
getHeight()
Returns total graph heightString
getImgInfo()
Returns image information requested byRrdGraphDef.setImageInfo(String)
methodString[]
getPrintLines()
Returns PRINT lines requested byRrdGraphDef.print(String, org.rrd4j.ConsolFun, String)
method.int
getWidth()
Returns total graph width
-
Field Details
-
Constructor Details
-
RrdGraphInfo
RrdGraphInfo()
-
-
Method Details
-
addPrintLine
-
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
- Throws:
IllegalStateException
- if the images bytes are unavailable or can't be read
-
getPrintLines
Returns PRINT lines requested byRrdGraphDef.print(String, org.rrd4j.ConsolFun, String)
method.- Returns:
- An array of formatted PRINT lines
-
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
- Throws:
IllegalStateException
- if the images bytes are unavailable
-
dump
Dumps complete graph information. Useful for debugging purposes.- Returns:
- String containing complete graph information
-