|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.ChartEncoder
public class ChartEncoder
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
.
getSupportedFormats()
| Constructor Summary | |
|---|---|
ChartEncoder()
|
|
| Method Summary | |
|---|---|
static void |
createEncodedImage(java.io.OutputStream os,
Chart chart,
java.lang.String format)
Prints the encoded image to an output stream. |
static void |
createGIF(java.io.OutputStream os,
Chart chart)
Deprecated. GIF encoding is no longer supported, use PNG instead |
static void |
createJPEG(java.io.OutputStream os,
Chart chart)
Prints the JPEG encoded image to an output stream. |
static void |
createPNG(java.io.OutputStream os,
Chart chart)
Prints the PNG encoded image to an output stream. |
static java.lang.String[] |
getSupportedFormats()
Returns a String array containing the informal format names for all supported image encodings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChartEncoder()
| Method Detail |
|---|
public static void createJPEG(java.io.OutputStream os,
Chart chart)
throws EncodingException
os - the OutputStream where the image will be printed to.chart - the Chart which will be printed to the output stream
EncodingException - if an error occurred accessing the Stream
public static void createGIF(java.io.OutputStream os,
Chart chart)
throws EncodingException
os - the OutputStream where the image will be printed to.chart - the Chart which will be printed to the output stream
EncodingException - if an error occurred accessing the Stream
public static void createPNG(java.io.OutputStream os,
Chart chart)
throws EncodingException
os - the OutputStream where the image will be printed to.chart - the Chart which will be printed to the output stream
EncodingException - if an error occurred accessing the Stream
public static void createEncodedImage(java.io.OutputStream os,
Chart chart,
java.lang.String format)
throws EncodingException
os - the OutputStream where the image will be printed to.chart - the Chart which will be printed to the output streamformat - the informal format name
EncodingException - if an error occurred accessing the Streampublic static java.lang.String[] getSupportedFormats()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||