public abstract class AFPImageHandler extends 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,
Rectangle targetRect)
Creates and returns an
AFPObjectAreaInfo instance for the placement of the image. |
static AFPResourceInfo |
createResourceInformation(String uri,
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 IOException
rendererImageInfo
- the renderer image infoIOException
- thrown if an I/O exception of some sort has occurred.public static AFPResourceInfo createResourceInformation(String uri, 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, 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 © 2025 Apache Software Foundation. All rights reserved.