fop 0.95

org.apache.fop.render.pdf
Class PDFImageHandlerRegistry

java.lang.Object
  extended by org.apache.fop.render.pdf.PDFImageHandlerRegistry

public class PDFImageHandlerRegistry
extends java.lang.Object

This class holds references to various image handlers used by the PDF renderer. It also supports automatic discovery of additional handlers available through the class path.


Constructor Summary
PDFImageHandlerRegistry()
          Default constructor.
 
Method Summary
 void addHandler(PDFImageHandler handler)
          Add an image handler.
 void addHandler(java.lang.String classname)
          Add an PDFImageHandler.
protected  PDFImageHandler getHandler(java.lang.Class imageClass)
          Returns an PDFImageHandler which handles an specific image type given the MIME type of the image.
 PDFImageHandler getHandler(org.apache.xmlgraphics.image.loader.Image img)
          Returns an PDFImageHandler which handles an specific image type given the MIME type of the image.
 org.apache.xmlgraphics.image.loader.ImageFlavor[] getSupportedFlavors()
          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

PDFImageHandlerRegistry

public PDFImageHandlerRegistry()
Default constructor.

Method Detail

addHandler

public void addHandler(java.lang.String classname)
Add an PDFImageHandler. The handler itself is inspected to find out what it supports.

Parameters:
classname - the fully qualified class name

addHandler

public void addHandler(PDFImageHandler handler)
Add an image handler. The handler itself is inspected to find out what it supports.

Parameters:
handler - the PDFImageHandler instance

getHandler

public PDFImageHandler getHandler(org.apache.xmlgraphics.image.loader.Image img)
Returns an PDFImageHandler which handles an specific image type given the MIME type of the image.

Parameters:
img - the Image to be handled
Returns:
the PDFImageHandler responsible for handling the image or null if none is available

getHandler

protected PDFImageHandler getHandler(java.lang.Class imageClass)
Returns an PDFImageHandler which handles an specific image type given the MIME type of the image.

Parameters:
imageClass - the Image subclass for which to get a handler
Returns:
the PDFImageHandler responsible for handling the image or null if none is available

getSupportedFlavors

public org.apache.xmlgraphics.image.loader.ImageFlavor[] getSupportedFlavors()
Returns the ordered array of supported image flavors.

Returns:
the array of image flavors

fop 0.95

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.