Package org.opennms.netmgt.rrd.jrobin
Class JRobinRrdGraphDetails
- java.lang.Object
-
- org.opennms.netmgt.rrd.jrobin.JRobinRrdGraphDetails
-
- All Implemented Interfaces:
RrdGraphDetails
public class JRobinRrdGraphDetails extends Object implements RrdGraphDetails
Container for details from a JRobin RRD graph. Stores the same details as RrdGraphDetails, in addition to the JRobin RrdGraph object itself and the graph command String used to generate the graph. We keep the graph command string around so we can generate a detailed error if getInputStream() is called, but no graph was produced.- Version:
- $Id: $
- Author:
- DJ Gregor
-
-
Constructor Summary
Constructors Constructor Description JRobinRrdGraphDetails(org.jrobin.graph.RrdGraph rrdGraph, String graphCommand)Constructor for JRobinRrdGraphDetails.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGraphCommand()getGraphCommandintgetHeight()getHeightInputStreamgetInputStream()getInputStreamString[]getPrintLines()getPrintLinesorg.jrobin.graph.RrdGraphgetRrdGraph()getRrdGraphintgetWidth()getWidth
-
-
-
Method Detail
-
getRrdGraph
public org.jrobin.graph.RrdGraph getRrdGraph()
getRrdGraph
- Returns:
- a
RrdGraphobject.
-
getInputStream
public InputStream getInputStream() throws RrdException
getInputStream
- Specified by:
getInputStreamin interfaceRrdGraphDetails- Returns:
- a
InputStreamobject. - Throws:
RrdException- if any.
-
getPrintLines
public String[] getPrintLines()
getPrintLines
- Specified by:
getPrintLinesin interfaceRrdGraphDetails- Returns:
- an array of
Stringobjects.
-
getHeight
public int getHeight() throws RrdExceptiongetHeight
- Specified by:
getHeightin interfaceRrdGraphDetails- Returns:
- a int.
- Throws:
RrdException- if any.
-
getWidth
public int getWidth() throws RrdExceptiongetWidth
- Specified by:
getWidthin interfaceRrdGraphDetails- Returns:
- a int.
- Throws:
RrdException- if any.
-
-