|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.ImageHandlerRegistry
public class ImageHandlerRegistry
This class holds references to various image handlers. It also supports automatic discovery of additional handlers available through the class path.
Constructor Summary | |
---|---|
ImageHandlerRegistry()
Default constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageHandlerRegistry()
Method Detail |
---|
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 handled
public org.apache.xmlgraphics.image.loader.ImageFlavor[] getSupportedFlavors(RenderingContext context)
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |