org.opennms.netmgt.rrd
Class DefaultRrdGraphDetails

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

public class DefaultRrdGraphDetails
extends Object
implements RrdGraphDetails

Simple RrdGraphDetails implementation.

Author:
DJ Gregor

Constructor Summary
DefaultRrdGraphDetails()
           
 
Method Summary
 int getHeight()
          Gets the height of the PNG image.
 InputStream getInputStream()
          Gets the PNG image representing the graph.
 String[] getPrintLines()
          Gets the PRINT lines associated with the graph command.
 int getWidth()
          Gets the width of the PNG image.
 void setHeight(int height)
           
 void setInputStream(InputStream inputStream)
           
 void setPrintLines(String[] printLines)
           
 void setWidth(int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRrdGraphDetails

public DefaultRrdGraphDetails()
Method Detail

getHeight

public int getHeight()
Description copied from interface: RrdGraphDetails
Gets the height of the PNG image.

Specified by:
getHeight in interface RrdGraphDetails
Returns:
height of the PNG image in pixels. This is the height of the entire PNG image, not just the height of the graph box within the image.

setHeight

public void setHeight(int height)

getInputStream

public InputStream getInputStream()
Description copied from interface: RrdGraphDetails
Gets the PNG image representing the graph. If a graph wasn't created, an RrdException will be thrown.

Specified by:
getInputStream in interface RrdGraphDetails
Returns:
InputStream containg a PNG image representing the graph

setInputStream

public void setInputStream(InputStream inputStream)

getPrintLines

public String[] getPrintLines()
Description copied from interface: RrdGraphDetails
Gets the PRINT lines associated with the graph command.

Specified by:
getPrintLines in interface RrdGraphDetails
Returns:
PRINT lines associated with the graph command. If there were no PRINT lines, an empty array is returned.

setPrintLines

public void setPrintLines(String[] printLines)

getWidth

public int getWidth()
Description copied from interface: RrdGraphDetails
Gets the width of the PNG image.

Specified by:
getWidth in interface RrdGraphDetails
Returns:
width of the PNG image in pixels. This is the width of the entire PNG image, not just the width of the graph box within the image.

setWidth

public void setWidth(int width)


Copyright © 2009. All Rights Reserved.