Class AbstractAFPImageHandlerRawStream
java.lang.Object
org.apache.fop.render.afp.AFPImageHandler
org.apache.fop.render.afp.AbstractAFPImageHandlerRawStream
- All Implemented Interfaces:
ImageHandler, ImageHandlerBase
- Direct Known Subclasses:
AFPImageHandlerRawCCITTFax, AFPImageHandlerRawStream
public abstract class AbstractAFPImageHandlerRawStream
extends AFPImageHandler
implements ImageHandler
A base abstract AFP raw stream image handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleImage(RenderingContext context, org.apache.xmlgraphics.image.loader.Image image, Rectangle pos) Handles the givenImageinstance painting it at the indicated position in the output format being generated.protected voidsetAdditionalParameters(AFPDataObjectInfo imageObjectInfo, org.apache.xmlgraphics.image.loader.impl.ImageRawStream image) Sets additional parameters on the image object info being built.private voidupdateDataObjectInfo(AFPDataObjectInfo dataObjectInfo, org.apache.xmlgraphics.image.loader.impl.ImageRawStream rawStream, AFPResourceManager resourceManager) Methods inherited from class AFPImageHandler
createDataObjectInfo, createObjectAreaInfo, createResourceInformation, generateDataObjectInfoMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ImageHandler
isCompatibleMethods inherited from interface ImageHandlerBase
getPriority, getSupportedImageClass, getSupportedImageFlavors
-
Constructor Details
-
AbstractAFPImageHandlerRawStream
public AbstractAFPImageHandlerRawStream()
-
-
Method Details
-
setAdditionalParameters
protected void setAdditionalParameters(AFPDataObjectInfo imageObjectInfo, org.apache.xmlgraphics.image.loader.impl.ImageRawStream image) Sets additional parameters on the image object info being built. By default, this method does nothing but it can be overridden to provide additional functionality.- Parameters:
imageObjectInfo- the image object info being builtimage- the image being processed
-
updateDataObjectInfo
private void updateDataObjectInfo(AFPDataObjectInfo dataObjectInfo, org.apache.xmlgraphics.image.loader.impl.ImageRawStream rawStream, AFPResourceManager resourceManager) throws IOException - Throws:
IOException
-
handleImage
public void handleImage(RenderingContext context, org.apache.xmlgraphics.image.loader.Image image, Rectangle pos) throws 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:
IOException- if an I/O error occurs
-