biz.hammurapi.metrics.persistent
Class ChartHelper

java.lang.Object
  extended by biz.hammurapi.metrics.persistent.ChartHelper

public class ChartHelper
extends java.lang.Object

Version:
$Revision: 1.2 $
Author:
Pavel Vlasov

Field Summary
static byte FORMAT_JPG
          Output JPG.
static byte FORMAT_PNG
          Output PNG
 
Constructor Summary
ChartHelper(byte outputFormat, int width, int height)
          Helper class.
 
Method Summary
 void output(org.jfree.chart.JFreeChart chart, java.io.File outputFile)
          Outputs chart to file.
 void output(org.jfree.chart.JFreeChart chart, java.io.OutputStream out)
          Outputs chart to stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMAT_JPG

public static final byte FORMAT_JPG
Output JPG.

See Also:
Constant Field Values

FORMAT_PNG

public static final byte FORMAT_PNG
Output PNG

See Also:
Constant Field Values
Constructor Detail

ChartHelper

public ChartHelper(byte outputFormat,
                   int width,
                   int height)
Helper class.

Parameters:
outputFormat - FORMAT_JPG or FORMAT_PNG.
width - chart width
height - chart height
Method Detail

output

public void output(org.jfree.chart.JFreeChart chart,
                   java.io.File outputFile)
            throws java.io.IOException
Outputs chart to file.

Parameters:
chart -
outputFile -
Throws:
java.io.IOException

output

public void output(org.jfree.chart.JFreeChart chart,
                   java.io.OutputStream out)
            throws java.io.IOException
Outputs chart to stream

Parameters:
chart -
out -
Throws:
java.io.IOException


Copyright © 2006 Hammurapi Group. All Rights Reserved.