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 String |
GET_HEIGHT_METHOD |
static String |
GET_PATH_METHOD |
static String |
GET_WIDTH_METHOD |
static String |
IMAGE_INFO |
static String |
REGISTER_IMAGE_METHOD |
| Modifier and Type | Method and Description |
|---|---|
String |
getHeight(ImageProviderInfo info,
String defaultHeight)
Returns the height of the image provider if not null and the given defaultHeight otherwise.
|
List<ImageProviderInfo> |
getImageProviderInfos()
Returns list of image provider info.
|
String |
getWidth(ImageProviderInfo info,
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(Object imageProvider,
String fieldName,
IContext context)
Register the instance of imageProvider in the registry.
|
static final String IMAGE_INFO
static final String REGISTER_IMAGE_METHOD
static final String GET_WIDTH_METHOD
static final String GET_HEIGHT_METHOD
static final String GET_PATH_METHOD
ImageProviderInfo registerImage(Object imageProvider, String fieldName, IContext context) throws XDocReportException, IOException
imageProvider - XDocReportExceptionIOExceptionvoid preProcess()
throws XDocReportException
XDocReportExceptionvoid postProcess()
throws XDocReportException
XDocReportExceptionList<ImageProviderInfo> getImageProviderInfos()
String getWidth(ImageProviderInfo info, String defaultWidth) throws IOException
imageProvider - defaultWidth - IOExceptionString getHeight(ImageProviderInfo info, String defaultHeight) throws IOException
imageProvider - defaultWidth - IOExceptionCopyright © 2015. All Rights Reserved.