public class RenderableUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static RenderableUtil |
getInstance(JasperReportsContext jasperReportsContext) |
Renderable |
getOnErrorRenderer(OnErrorTypeEnum onErrorType,
JRException e) |
Renderable |
getOnErrorRenderer(OnErrorTypeEnum onErrorType,
JRRuntimeException e) |
Renderable |
getOnErrorRendererForDimension(Renderable renderer,
OnErrorTypeEnum onErrorType) |
Renderable |
getOnErrorRendererForImageData(Renderable renderer,
OnErrorTypeEnum onErrorType) |
Renderable |
getRenderable(byte[] imageData) |
Renderable |
getRenderable(File file,
OnErrorTypeEnum onErrorType) |
Renderable |
getRenderable(Image image,
ImageTypeEnum imageType,
OnErrorTypeEnum onErrorType)
Creates and returns an instance of the JRImageRenderer class after encoding the image object using an image
encoder that supports the supplied image type.
|
Renderable |
getRenderable(Image img,
OnErrorTypeEnum onErrorType) |
Renderable |
getRenderable(InputStream is,
OnErrorTypeEnum onErrorType) |
Renderable |
getRenderable(String imageLocation) |
Renderable |
getRenderable(String imageLocation,
OnErrorTypeEnum onErrorType) |
Renderable |
getRenderable(String imageLocation,
OnErrorTypeEnum onErrorType,
boolean isLazy) |
Renderable |
getRenderable(URL url,
OnErrorTypeEnum onErrorType) |
static Renderable |
getWrappingRenderable(JRImageMapRenderer deprecatedRenderer)
Deprecated.
To be removed.
|
static Renderable |
getWrappingRenderable(JRRenderable deprecatedRenderer)
Deprecated.
To be removed.
|
protected Renderable |
handleImageError(Exception error,
OnErrorTypeEnum onErrorType)
public Renderable getOnErrorRendererForImage(Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
{
try
{
renderer.getImage();
return renderer;
}
catch (JRException e)
{
return getOnErrorRenderer(onErrorType, e);
}
}
|
public static RenderableUtil getInstance(JasperReportsContext jasperReportsContext)
public Renderable getRenderable(byte[] imageData)
public Renderable getRenderable(String imageLocation) throws JRException
JRExceptionpublic Renderable getRenderable(String imageLocation, OnErrorTypeEnum onErrorType) throws JRException
JRExceptionpublic Renderable getRenderable(String imageLocation, OnErrorTypeEnum onErrorType, boolean isLazy) throws JRException
JRExceptionpublic Renderable getRenderable(Image img, OnErrorTypeEnum onErrorType) throws JRException
JRExceptionpublic Renderable getRenderable(Image image, ImageTypeEnum imageType, OnErrorTypeEnum onErrorType) throws JRException
image - the java.awt.Image object to wrap into a JRImageRenderer instanceimageType - the type of the image as specified by one of the constants defined in the JRRenderable interfaceonErrorType - one of the error type constants defined in the OnErrorTypeEnum.JRExceptionpublic Renderable getRenderable(InputStream is, OnErrorTypeEnum onErrorType) throws JRException
JRExceptionpublic Renderable getRenderable(URL url, OnErrorTypeEnum onErrorType) throws JRException
JRExceptionpublic Renderable getRenderable(File file, OnErrorTypeEnum onErrorType) throws JRException
JRExceptionpublic Renderable getOnErrorRendererForDimension(Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
JRExceptionpublic Renderable getOnErrorRendererForImageData(Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
JRExceptionprotected Renderable handleImageError(Exception error, OnErrorTypeEnum onErrorType) throws JRException
JRExceptionpublic Renderable getOnErrorRenderer(OnErrorTypeEnum onErrorType, JRException e) throws JRException
JRExceptionpublic Renderable getOnErrorRenderer(OnErrorTypeEnum onErrorType, JRRuntimeException e) throws JRRuntimeException
JRRuntimeExceptionpublic static Renderable getWrappingRenderable(JRRenderable deprecatedRenderer)
public static Renderable getWrappingRenderable(JRImageMapRenderer deprecatedRenderer)
Copyright © 2014. All rights reserved.