Package org.apache.fop.render.pdf
Class AbstractPDFImageHandler
- java.lang.Object
-
- org.apache.fop.render.pdf.AbstractPDFImageHandler
-
- All Implemented Interfaces:
ImageHandler,ImageHandlerBase
- Direct Known Subclasses:
PDFImageHandlerRawCCITTFax,PDFImageHandlerRawJPEG,PDFImageHandlerRawPNG,PDFImageHandlerRenderedImage
abstract class AbstractPDFImageHandler extends java.lang.Object implements ImageHandler
A partial implementation of a PDF-specific image handler, containing the code that is common between image flavors.
-
-
Constructor Summary
Constructors Constructor Description AbstractPDFImageHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract PDFImagecreatePDFImage(org.apache.xmlgraphics.image.loader.Image image, java.lang.String xobjectKey)Creates a PDF image object out of the given image.voidhandleImage(RenderingContext context, org.apache.xmlgraphics.image.loader.Image image, java.awt.Rectangle pos)Handles the givenImageinstance painting it at the indicated position in the output format being generated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.fop.render.ImageHandler
isCompatible
-
Methods inherited from interface org.apache.fop.render.ImageHandlerBase
getPriority, getSupportedImageClass, getSupportedImageFlavors
-
-
-
-
Method Detail
-
handleImage
public void handleImage(RenderingContext context, org.apache.xmlgraphics.image.loader.Image image, java.awt.Rectangle pos) throws java.io.IOException
Handles the givenImageinstance painting it at the indicated position in the output format being generated.- Specified by:
handleImagein interfaceImageHandler- Parameters:
context- the rendering contextimage- the image to be handledpos- the position and scaling of the image relative to the origin point of the current viewport (in millipoints)- Throws:
java.io.IOException- if an I/O error occurs
-
createPDFImage
abstract PDFImage createPDFImage(org.apache.xmlgraphics.image.loader.Image image, java.lang.String xobjectKey)
Creates a PDF image object out of the given image.- Parameters:
image- an imagexobjectKey- a key for retrieval of the image from the document's XObject collection- Returns:
- a suitable
PDFImageimplementation that can handle the flavour of the given image
-
-