org.opennms.netmgt.rrd.jrobin
Class JRobinRrdGraphDetails

java.lang.Object
  extended by 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
JRobinRrdGraphDetails(org.jrobin.graph.RrdGraph rrdGraph, String graphCommand)
          Constructor for JRobinRrdGraphDetails.
 
Method Summary
 String getGraphCommand()
          getGraphCommand
 int getHeight()
          getHeight
 InputStream getInputStream()
          getInputStream
 String[] getPrintLines()
          getPrintLines
 org.jrobin.graph.RrdGraph getRrdGraph()
          getRrdGraph
 int getWidth()
          getWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRobinRrdGraphDetails

public JRobinRrdGraphDetails(org.jrobin.graph.RrdGraph rrdGraph,
                             String graphCommand)

Constructor for JRobinRrdGraphDetails.

Parameters:
rrdGraph - a RrdGraph object.
graphCommand - a String object.
Method Detail

getRrdGraph

public org.jrobin.graph.RrdGraph getRrdGraph()

getRrdGraph

Returns:
a RrdGraph object.

getGraphCommand

public String getGraphCommand()

getGraphCommand

Returns:
a String object.

getInputStream

public InputStream getInputStream()
                           throws RrdException

getInputStream

Specified by:
getInputStream in interface RrdGraphDetails
Returns:
a InputStream object.
Throws:
RrdException - if any.

getPrintLines

public String[] getPrintLines()

getPrintLines

Specified by:
getPrintLines in interface RrdGraphDetails
Returns:
an array of String objects.

getHeight

public int getHeight()
              throws RrdException

getHeight

Specified by:
getHeight in interface RrdGraphDetails
Returns:
a int.
Throws:
RrdException - if any.

getWidth

public int getWidth()
             throws RrdException

getWidth

Specified by:
getWidth in interface RrdGraphDetails
Returns:
a int.
Throws:
RrdException - if any.


Copyright © 2011. All Rights Reserved.