public class ImageHandlerRegistry extends Object
| Constructor and Description |
|---|
ImageHandlerRegistry()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(ImageHandler handler)
Add an image handler.
|
void |
addHandler(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(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 © 2023 Apache Software Foundation. All rights reserved.