org.opennms.secret.service.impl
Class GraphRendererImpl

java.lang.Object
  extended by org.opennms.secret.service.impl.GraphRendererImpl
All Implemented Interfaces:
GraphRenderer

public class GraphRendererImpl
extends Object
implements GraphRenderer

This is an implimentation of the GraphRender which uses jrobin to generate the PNG file from the supplied graph definition

Author:
mhuot

Field Summary
static int GIF
           
static int JPG
           
static int PNG
           
 
Constructor Summary
GraphRendererImpl()
           
 
Method Summary
 ByteArrayInputStream getGIF(GraphDefinition gdef)
           
 ByteArrayInputStream getGraphImage(GraphDefinition gdef)
           
 ByteArrayInputStream getJPEG(GraphDefinition gdef)
           
 ByteArrayInputStream getPNG(GraphDefinition gdef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GIF

public static final int GIF
See Also:
Constant Field Values

JPG

public static final int JPG
See Also:
Constant Field Values

PNG

public static final int PNG
See Also:
Constant Field Values
Constructor Detail

GraphRendererImpl

public GraphRendererImpl()
Method Detail

getPNG

public ByteArrayInputStream getPNG(GraphDefinition gdef)
                            throws IOException,
                                   org.jrobin.core.RrdException
Specified by:
getPNG in interface GraphRenderer
Throws:
IOException
org.jrobin.core.RrdException

getJPEG

public ByteArrayInputStream getJPEG(GraphDefinition gdef)
                             throws IOException,
                                    org.jrobin.core.RrdException
Throws:
IOException
org.jrobin.core.RrdException

getGIF

public ByteArrayInputStream getGIF(GraphDefinition gdef)
                            throws IOException,
                                   org.jrobin.core.RrdException
Throws:
IOException
org.jrobin.core.RrdException

getGraphImage

public ByteArrayInputStream getGraphImage(GraphDefinition gdef)


Copyright © 2009. All Rights Reserved.