public class ImageHandlerRegistry
extends java.lang.Object
Constructor | Description |
---|---|
ImageHandlerRegistry() |
Default constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addHandler(java.lang.String classname) |
Add an PDFImageHandler.
|
void |
addHandler(ImageHandler handler) |
Add an image handler.
|
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)
context
- the rendering contextCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.