org.opennms.netmgt.rrd.jrobin
Class JRobinRrdGraphDetails

java.lang.Object
  extended by org.opennms.netmgt.rrd.jrobin.JRobinRrdGraphDetails
All Implemented Interfaces:
org.opennms.netmgt.rrd.RrdGraphDetails

public class JRobinRrdGraphDetails
extends java.lang.Object
implements org.opennms.netmgt.rrd.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, java.lang.String graphCommand)
           
 
Method Summary
 java.lang.String getGraphCommand()
           
 int getHeight()
           
 java.io.InputStream getInputStream()
           
 java.lang.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,
                             java.lang.String graphCommand)
Method Detail

getRrdGraph

public org.jrobin.graph.RrdGraph getRrdGraph()

getGraphCommand

public java.lang.String getGraphCommand()

getInputStream

public java.io.InputStream getInputStream()
                                   throws org.opennms.netmgt.rrd.RrdException
Specified by:
getInputStream in interface org.opennms.netmgt.rrd.RrdGraphDetails
Throws:
org.opennms.netmgt.rrd.RrdException

getPrintLines

public java.lang.String[] getPrintLines()
Specified by:
getPrintLines in interface org.opennms.netmgt.rrd.RrdGraphDetails

getHeight

public int getHeight()
              throws org.opennms.netmgt.rrd.RrdException
Specified by:
getHeight in interface org.opennms.netmgt.rrd.RrdGraphDetails
Throws:
org.opennms.netmgt.rrd.RrdException

getWidth

public int getWidth()
             throws org.opennms.netmgt.rrd.RrdException
Specified by:
getWidth in interface org.opennms.netmgt.rrd.RrdGraphDetails
Throws:
org.opennms.netmgt.rrd.RrdException


Copyright © 2007. All Rights Reserved.