public abstract class AFPImageHandler extends java.lang.Object implements ImageHandlerBase
Constructor and Description |
---|
AFPImageHandler() |
Modifier and Type | Method and Description |
---|---|
protected abstract AFPDataObjectInfo |
createDataObjectInfo()
Creates the data object information object
|
static AFPObjectAreaInfo |
createObjectAreaInfo(AFPPaintingState paintingState,
java.awt.Rectangle targetRect)
Creates and returns an
AFPObjectAreaInfo instance for the placement of the image. |
static AFPResourceInfo |
createResourceInformation(java.lang.String uri,
java.util.Map foreignAttributes)
Sets resource information on the data object info.
|
AFPDataObjectInfo |
generateDataObjectInfo(AFPRendererImageInfo rendererImageInfo)
Generates an intermediate AFPDataObjectInfo that is later used to construct
the appropriate data object in the AFP DataStream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority, getSupportedImageClass, getSupportedImageFlavors
public AFPDataObjectInfo generateDataObjectInfo(AFPRendererImageInfo rendererImageInfo) throws java.io.IOException
rendererImageInfo
- the renderer image infojava.io.IOException
- thrown if an I/O exception of some sort has occurred.public static AFPResourceInfo createResourceInformation(java.lang.String uri, java.util.Map foreignAttributes)
uri
- the image's URI (or null if no URI is available)foreignAttributes
- a Map of foreign attributes (or null)public static AFPObjectAreaInfo createObjectAreaInfo(AFPPaintingState paintingState, java.awt.Rectangle targetRect)
AFPObjectAreaInfo
instance for the placement of the image.paintingState
- the painting statetargetRect
- the target rectangle in which to place the image (coordinates in mpt)protected abstract AFPDataObjectInfo createDataObjectInfo()
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.