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.

Author:
DJ Gregor

Constructor Summary
JRobinRrdGraphDetails(org.jrobin.graph.RrdGraph rrdGraph, String graphCommand)
           
 
Method Summary
 String getGraphCommand()
           
 int getHeight()
           
 InputStream getInputStream()
           
 String[] getPrintLines()
           
 org.jrobin.graph.RrdGraph getRrdGraph()
           
 int 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)
Method Detail

getRrdGraph

public org.jrobin.graph.RrdGraph getRrdGraph()

getGraphCommand

public String getGraphCommand()

getInputStream

public InputStream getInputStream()
                           throws RrdException
Specified by:
getInputStream in interface RrdGraphDetails
Throws:
RrdException

getPrintLines

public String[] getPrintLines()
Specified by:
getPrintLines in interface RrdGraphDetails

getHeight

public int getHeight()
              throws RrdException
Specified by:
getHeight in interface RrdGraphDetails
Throws:
RrdException

getWidth

public int getWidth()
             throws RrdException
Specified by:
getWidth in interface RrdGraphDetails
Throws:
RrdException


Copyright © 2008. All Rights Reserved.