public interface IImageRegistry
IImageProvider used in the "context", copy the binary data of the images in
the generated report, modify some entry of the generated report with image information.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GET_HEIGHT_METHOD |
static java.lang.String |
GET_PATH_METHOD |
static java.lang.String |
GET_WIDTH_METHOD |
static java.lang.String |
IMAGE_INFO |
static java.lang.String |
REGISTER_IMAGE_METHOD |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHeight(ImageProviderInfo info,
java.lang.String defaultHeight)
Returns the height of the image provider if not null and the given defaultHeight otherwise.
|
java.util.List<ImageProviderInfo> |
getImageProviderInfos()
Returns list of image provider info.
|
java.lang.String |
getWidth(ImageProviderInfo info,
java.lang.String defaultWidth)
Returns the width of the image provider if not null and the given defaultWidth otherwise.
|
void |
postProcess()
Called after processing of the template engine.
|
void |
preProcess()
Called before processing of the template engine.
|
ImageProviderInfo |
registerImage(java.lang.Object imageProvider,
java.lang.String fieldName,
IContext context)
Register the instance of imageProvider in the registry.
|
static final java.lang.String IMAGE_INFO
static final java.lang.String REGISTER_IMAGE_METHOD
static final java.lang.String GET_WIDTH_METHOD
static final java.lang.String GET_HEIGHT_METHOD
static final java.lang.String GET_PATH_METHOD
ImageProviderInfo registerImage(java.lang.Object imageProvider, java.lang.String fieldName, IContext context) throws XDocReportException, java.io.IOException
imageProvider - XDocReportExceptionjava.io.IOExceptionvoid preProcess()
throws XDocReportException
XDocReportExceptionvoid postProcess()
throws XDocReportException
XDocReportExceptionjava.util.List<ImageProviderInfo> getImageProviderInfos()
java.lang.String getWidth(ImageProviderInfo info, java.lang.String defaultWidth) throws java.io.IOException
imageProvider - defaultWidth - java.io.IOExceptionjava.lang.String getHeight(ImageProviderInfo info, java.lang.String defaultHeight) throws java.io.IOException
imageProvider - defaultWidth - java.io.IOExceptionCopyright © 2024. All Rights Reserved.