public class ImageHandlerRegistry
extends java.lang.Object
Constructor and Description |
---|
ImageHandlerRegistry()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(ImageHandler handler)
Add an image handler.
|
void |
addHandler(java.lang.String classname)
Add an PDFImageHandler.
|
ImageHandler |
getHandler(RenderingContext targetContext,
org.apache.xmlgraphics.image.loader.Image image)
Returns an
ImageHandler which handles an specific image type given the MIME type
of the image. |
org.apache.xmlgraphics.image.loader.ImageFlavor[] |
getSupportedFlavors(RenderingContext context)
Returns the ordered array of supported image flavors.
|
public void addHandler(java.lang.String classname)
classname
- the fully qualified class namepublic void addHandler(ImageHandler handler)
handler
- the ImageHandler instancepublic ImageHandler getHandler(RenderingContext targetContext, org.apache.xmlgraphics.image.loader.Image image)
ImageHandler
which handles an specific image type given the MIME type
of the image.targetContext
- the target rendering context that is used for identifying compatibilityimage
- the Image to be handledpublic org.apache.xmlgraphics.image.loader.ImageFlavor[] getSupportedFlavors(RenderingContext context)
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.