| java.lang.Object de.progra.charting.ChartEncoder
ChartEncoder | public class ChartEncoder (Code) | | The ChartEncoder class provides several static methods to encode
charts to an OutputStream. It uses the Java Advanced Imaging Library
which is part of the JDK 1.4 release. The list of supported Image Formats
may vary depending on the actual release. Quoting from the current
webpage as of 28.1.2002: "As of JAI-1.1.1, the latest public version of JAI,
the image formats supported by these ancillary codec classes are:
BMP, GIF (decoder only), FlashPix (decoder only), JPEG, PNG, PNM, and TIFF."
For the actual list of supported image formats call
ChartEncoder.getSupportedFormats .
author: mueller version: 1.0 |
createEncodedImage | public static void createEncodedImage(OutputStream os, Chart chart, String format) throws EncodingException(Code) | | Prints the encoded image to an output stream.
Parameters: os - the OutputStream where the image will be printed to. Parameters: chart - the Chart which will be printed to the output stream Parameters: format - the informal format name throws: EncodingException - if an error occurred accessing the Stream |
createGIF | public static void createGIF(OutputStream os, Chart chart) throws EncodingException(Code) | | Prints the GIF encoded image to an output stream.
Parameters: os - the OutputStream where the image will be printed to. Parameters: chart - the Chart which will be printed to the output stream throws: EncodingException - if an error occurred accessing the Stream |
createJPEG | public static void createJPEG(OutputStream os, Chart chart) throws EncodingException(Code) | | Prints the JPEG encoded image to an output stream.
Parameters: os - the OutputStream where the image will be printed to. Parameters: chart - the Chart which will be printed to the output stream throws: EncodingException - if an error occurred accessing the Stream |
createPNG | public static void createPNG(OutputStream os, Chart chart) throws EncodingException(Code) | | Prints the PNG encoded image to an output stream.
Parameters: os - the OutputStream where the image will be printed to. Parameters: chart - the Chart which will be printed to the output stream throws: EncodingException - if an error occurred accessing the Stream |
getSupportedFormats | public static String[] getSupportedFormats()(Code) | | Returns a String array containing the informal format names for
all supported image encodings.
|
|
|