|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.chart.encoders.ImageEncoderFactory
public class ImageEncoderFactory
Factory class for returning ImageEncoder
s for different
ImageFormat
s.
Constructor Summary | |
---|---|
ImageEncoderFactory()
|
Method Summary | |
---|---|
static ImageEncoder |
newInstance(java.lang.String format)
Used to retrieve an ImageEncoder for a specific image format. |
static ImageEncoder |
newInstance(java.lang.String format,
boolean encodingAlpha)
Used to retrieve an ImageEncoder for a specific image format. |
static ImageEncoder |
newInstance(java.lang.String format,
float quality)
Used to retrieve an ImageEncoder for a specific image format. |
static ImageEncoder |
newInstance(java.lang.String format,
float quality,
boolean encodingAlpha)
Used to retrieve an ImageEncoder for a specific image format. |
static void |
setImageEncoder(java.lang.String format,
java.lang.String imageEncoderClassName)
Used to set additional encoders or replace default ones. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageEncoderFactory()
Method Detail |
---|
public static void setImageEncoder(java.lang.String format, java.lang.String imageEncoderClassName)
format
- The image format name.imageEncoderClassName
- The name of the ImageEncoder class.public static ImageEncoder newInstance(java.lang.String format)
format
- The image format required.
null
if none available.public static ImageEncoder newInstance(java.lang.String format, float quality)
format
- The image format required.quality
- The quality to be set before returning.
null
if none available.public static ImageEncoder newInstance(java.lang.String format, boolean encodingAlpha)
format
- The image format required.encodingAlpha
- Sets whether alpha transparency should be encoded.
null
if none available.public static ImageEncoder newInstance(java.lang.String format, float quality, boolean encodingAlpha)
format
- The image format required.quality
- The quality to be set before returning.encodingAlpha
- Sets whether alpha transparency should be encoded.
null
if none available.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |