org.jCharts.encoders
Class JPEGEncoder13

java.lang.Object
  |
  +--org.jCharts.encoders.JPEGEncoder13

public final class JPEGEncoder13
extends java.lang.Object

Provided for backwards compatibility for jdk 1.3


Constructor Summary
private JPEGEncoder13()
           
 
Method Summary
static void encode(Chart chart, float quality, java.io.OutputStream outputStream)
          Encodes the chart to a JPEG format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPEGEncoder13

private JPEGEncoder13()
               throws java.lang.Exception
Method Detail

encode

public static final void encode(Chart chart,
                                float quality,
                                java.io.OutputStream outputStream)
                         throws ChartDataException,
                                PropertyException,
                                java.io.IOException
Encodes the chart to a JPEG format. If you are generating large dimension images, the file size can get quite large. You can try decreasing the quality to decrease the file size.

Parameters:
outputStream -
quality - float value from 0.0f(worst image quality) - 1.0f(best image quality)
Throws:
ChartDataException
PropertyException
java.io.IOException