RendererUtil
.public class RenderableUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EXCEPTION_MESSAGE_KEY_IMAGE_ERROR
Deprecated.
|
public static final String EXCEPTION_MESSAGE_KEY_IMAGE_ERROR
public static RenderableUtil getInstance(JasperReportsContext jasperReportsContext)
public Renderable getRenderable(byte[] imageData)
public Renderable getRenderable(String imageLocation) throws JRException
ResourceRenderer.getInstance(String, boolean)
.JRException
public Renderable getRenderable(String imageLocation, OnErrorTypeEnum onErrorType) throws JRException
ResourceRenderer.getInstance(String, boolean)
.JRException
public Renderable getRenderable(String imageLocation, OnErrorTypeEnum onErrorType, boolean isLazy) throws JRException
ResourceRenderer.getInstance(String, boolean)
and RendererUtil.getNonLazyRenderable(String, OnErrorTypeEnum)
.JRException
public Renderable getRenderable(Image img, OnErrorTypeEnum onErrorType) throws JRException
JRException
public 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
.JRException
public Renderable getRenderable(InputStream is, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getRenderable(URL url, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getRenderable(File file, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getOnErrorRendererForDimension(Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getOnErrorRendererForDimension(RenderersCache renderersCache, Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getOnErrorRendererForImageData(Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable handleImageError(Exception error, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getOnErrorRenderer(OnErrorTypeEnum onErrorType, JRException e) throws JRException
JRException
public Renderable getOnErrorRenderer(OnErrorTypeEnum onErrorType, JRRuntimeException e) throws JRRuntimeException
JRRuntimeException
public static Renderable getWrappingRenderable(JRRenderable deprecatedRenderer)
public static Renderable getWrappingRenderable(JRImageMapRenderer deprecatedRenderer)
public static Renderable getWrappingRenderable(Renderable renderable)
Copyright © 2017. All rights reserved.