|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.loader.ImageFlavor
org.apache.xmlgraphics.image.loader.RefinedImageFlavor
public abstract class RefinedImageFlavor
Special image flavor subclass which enables the refinement to specific (sub-)flavors but maintaining compatibility to a parent (i.e. more general) flavor.
Field Summary |
---|
Fields inherited from class org.apache.xmlgraphics.image.loader.ImageFlavor |
---|
BUFFERED_IMAGE, GRAPHICS2D, RAW, RAW_CCITTFAX, RAW_EMF, RAW_EPS, RAW_JPEG, RAW_LZW, RAW_PNG, RAW_TIFF, RENDERED_IMAGE, XML_DOM |
Constructor Summary | |
---|---|
protected |
RefinedImageFlavor(ImageFlavor parentFlavor)
Constructs a new image flavor. |
protected |
RefinedImageFlavor(java.lang.String name,
ImageFlavor parentFlavor)
Constructs a new image flavor. |
Method Summary | |
---|---|
java.lang.String |
getMimeType()
Returns the MIME type that the image flavor represents if a MIME type is available. |
java.lang.String |
getNamespace()
Returns the XML namespace URI that the image flavor represents if such a namespace URI is available. |
ImageFlavor |
getParentFlavor()
Returns the associated parent image flavor. |
boolean |
isCompatible(ImageFlavor flavor)
Indicates whether a particular image flavor is compatible with this one. |
Methods inherited from class org.apache.xmlgraphics.image.loader.ImageFlavor |
---|
equals, getName, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected RefinedImageFlavor(ImageFlavor parentFlavor)
parentFlavor
- the parent image flavorprotected RefinedImageFlavor(java.lang.String name, ImageFlavor parentFlavor)
parentFlavor
- the parent image flavorname
- the name of the flavor (must be unique)Method Detail |
---|
public ImageFlavor getParentFlavor()
public java.lang.String getMimeType()
getMimeType
in class ImageFlavor
public java.lang.String getNamespace()
getNamespace
in class ImageFlavor
public boolean isCompatible(ImageFlavor flavor)
isCompatible
in class ImageFlavor
flavor
- the other image flavor
|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |