public abstract class AbstractAFPImageHandlerRawStream extends AFPImageHandler implements ImageHandler
Constructor and Description |
---|
AbstractAFPImageHandlerRawStream() |
Modifier and Type | Method and Description |
---|---|
AFPDataObjectInfo |
generateDataObjectInfo(AFPRendererImageInfo rendererImageInfo)
Generates an intermediate AFPDataObjectInfo that is later used to construct
the appropriate data object in the AFP DataStream.
|
void |
handleImage(RenderingContext context,
org.apache.xmlgraphics.image.loader.Image image,
java.awt.Rectangle pos)
Handles the given
Image instance painting it at the indicated position in the
output format being generated. |
protected void |
setAdditionalParameters(AFPDataObjectInfo imageObjectInfo,
org.apache.xmlgraphics.image.loader.impl.ImageRawStream image)
Sets additional parameters on the image object info being built.
|
createDataObjectInfo, createObjectAreaInfo, setResourceInformation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCompatible
getPriority, getSupportedImageClass, getSupportedImageFlavors
public AFPDataObjectInfo generateDataObjectInfo(AFPRendererImageInfo rendererImageInfo) throws java.io.IOException
generateDataObjectInfo
in class AFPImageHandler
rendererImageInfo
- the renderer image infojava.io.IOException
- thrown if an I/O exception of some sort has occurred.protected void setAdditionalParameters(AFPDataObjectInfo imageObjectInfo, org.apache.xmlgraphics.image.loader.impl.ImageRawStream image)
imageObjectInfo
- the image object info being builtimage
- the image being processedpublic void handleImage(RenderingContext context, org.apache.xmlgraphics.image.loader.Image image, java.awt.Rectangle pos) throws java.io.IOException
Image
instance painting it at the indicated position in the
output format being generated.handleImage
in interface ImageHandler
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)java.io.IOException
- if an I/O error occursCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.