|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.loader.ImageFlavor
public class ImageFlavor
The flavor of an image indicates in which form it is available. A bitmap image loaded into memory might be represented as a BufferedImage (indicated by ImageFlavor.BUFFERED_IMAGE). It is mostly used by consuming code to indicate what kind of flavors can be processed so a processing pipeline can do the necessary loading operations and conversions.
Field Summary | |
---|---|
static ImageFlavor |
BUFFERED_IMAGE
An image in form of a BufferedImage instance |
static ImageFlavor |
GRAPHICS2D
An image in form of a Graphics2DImage (can be painted on a Graphics2D interface) |
static ImageFlavor |
RAW_CCITTFAX
An image in form of a raw CCITTFax stream |
static ImageFlavor |
RAW_EMF
An image in form of a raw EMF (Windows Enhanced Metafile) file/stream |
static ImageFlavor |
RAW_EPS
An image in form of a raw EPS (Encapsulated PostScript) file/stream |
static ImageFlavor |
RAW_JPEG
An image in form of a raw JPEG/JFIF file/stream |
static ImageFlavor |
RAW_PNG
An image in form of a raw PNG file/stream |
static ImageFlavor |
RENDERED_IMAGE
An image in form of a RenderedImage instance |
static ImageFlavor |
XML_DOM
An XML-based image in form of a W3C DOM instance |
Constructor Summary | |
---|---|
ImageFlavor(java.lang.String name)
Constructs a new ImageFlavor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Returns the name of the ImageFlavor. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ImageFlavor RENDERED_IMAGE
public static final ImageFlavor BUFFERED_IMAGE
public static final ImageFlavor XML_DOM
public static final ImageFlavor RAW_PNG
public static final ImageFlavor RAW_JPEG
public static final ImageFlavor RAW_EMF
public static final ImageFlavor RAW_EPS
public static final ImageFlavor RAW_CCITTFAX
public static final ImageFlavor GRAPHICS2D
Constructor Detail |
---|
public ImageFlavor(java.lang.String name)
name
- the name of the flavor (must be unique)Method Detail |
---|
public java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |