Package net.sf.jasperreports.engine
Class RenderableUtil
- java.lang.Object
-
- net.sf.jasperreports.engine.RenderableUtil
-
public class RenderableUtil extends java.lang.Object
Deprecated.Replaced byRendererUtil
.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EXCEPTION_MESSAGE_KEY_IMAGE_ERROR
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RenderableUtil
getInstance(JasperReportsContext jasperReportsContext)
Deprecated.Renderable
getOnErrorRenderer(OnErrorTypeEnum onErrorType, JRException e)
Deprecated.Renderable
getOnErrorRenderer(OnErrorTypeEnum onErrorType, JRRuntimeException e)
Deprecated.Renderable
getOnErrorRendererForDimension(Renderable renderer, OnErrorTypeEnum onErrorType)
Deprecated.To be removed.Renderable
getOnErrorRendererForDimension(RenderersCache renderersCache, Renderable renderer, OnErrorTypeEnum onErrorType)
Deprecated.To be removed.Renderable
getOnErrorRendererForImageData(Renderable renderer, OnErrorTypeEnum onErrorType)
Deprecated.To be removed.Renderable
getRenderable(byte[] imageData)
Deprecated.Renderable
getRenderable(java.awt.Image image, ImageTypeEnum imageType, OnErrorTypeEnum onErrorType)
Deprecated.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(java.awt.Image img, OnErrorTypeEnum onErrorType)
Deprecated.Renderable
getRenderable(java.io.File file, OnErrorTypeEnum onErrorType)
Deprecated.Renderable
getRenderable(java.io.InputStream is, OnErrorTypeEnum onErrorType)
Deprecated.Renderable
getRenderable(java.lang.String imageLocation)
Deprecated.Replaced byResourceRenderer.getInstance(String, boolean)
.Renderable
getRenderable(java.lang.String imageLocation, OnErrorTypeEnum onErrorType)
Deprecated.Replaced byResourceRenderer.getInstance(String, boolean)
.Renderable
getRenderable(java.lang.String imageLocation, OnErrorTypeEnum onErrorType, boolean isLazy)
Deprecated.Renderable
getRenderable(java.net.URL url, OnErrorTypeEnum onErrorType)
Deprecated.static Renderable
getWrappingRenderable(JRImageMapRenderer deprecatedRenderer)
Deprecated.To be removed.static Renderable
getWrappingRenderable(JRRenderable deprecatedRenderer)
Deprecated.To be removed.static Renderable
getWrappingRenderable(Renderable renderable)
Deprecated.To be removed.Renderable
handleImageError(java.lang.Exception error, OnErrorTypeEnum onErrorType)
Deprecated.
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_IMAGE_ERROR
public static final java.lang.String EXCEPTION_MESSAGE_KEY_IMAGE_ERROR
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static RenderableUtil getInstance(JasperReportsContext jasperReportsContext)
Deprecated.
-
getRenderable
public Renderable getRenderable(byte[] imageData)
Deprecated.
-
getRenderable
public Renderable getRenderable(java.lang.String imageLocation) throws JRException
Deprecated.Replaced byResourceRenderer.getInstance(String, boolean)
.- Throws:
JRException
-
getRenderable
public Renderable getRenderable(java.lang.String imageLocation, OnErrorTypeEnum onErrorType) throws JRException
Deprecated.Replaced byResourceRenderer.getInstance(String, boolean)
.- Throws:
JRException
-
getRenderable
public Renderable getRenderable(java.lang.String imageLocation, OnErrorTypeEnum onErrorType, boolean isLazy) throws JRException
Deprecated.- Throws:
JRException
-
getRenderable
public Renderable getRenderable(java.awt.Image img, OnErrorTypeEnum onErrorType) throws JRException
Deprecated.- Throws:
JRException
-
getRenderable
public Renderable getRenderable(java.awt.Image image, ImageTypeEnum imageType, OnErrorTypeEnum onErrorType) throws JRException
Deprecated.Creates and returns an instance of the JRImageRenderer class after encoding the image object using an image encoder that supports the supplied image type.- Parameters:
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 theOnErrorTypeEnum
.- Returns:
- the image renderer instance
- Throws:
JRException
-
getRenderable
public Renderable getRenderable(java.io.InputStream is, OnErrorTypeEnum onErrorType) throws JRException
Deprecated.- Throws:
JRException
-
getRenderable
public Renderable getRenderable(java.net.URL url, OnErrorTypeEnum onErrorType) throws JRException
Deprecated.- Throws:
JRException
-
getRenderable
public Renderable getRenderable(java.io.File file, OnErrorTypeEnum onErrorType) throws JRException
Deprecated.- Throws:
JRException
-
getOnErrorRendererForDimension
public Renderable getOnErrorRendererForDimension(Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
Deprecated.To be removed.- Throws:
JRException
-
getOnErrorRendererForDimension
public Renderable getOnErrorRendererForDimension(RenderersCache renderersCache, Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
Deprecated.To be removed.- Throws:
JRException
-
getOnErrorRendererForImageData
public Renderable getOnErrorRendererForImageData(Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
Deprecated.To be removed.- Throws:
JRException
-
handleImageError
public Renderable handleImageError(java.lang.Exception error, OnErrorTypeEnum onErrorType) throws JRException
Deprecated.- Throws:
JRException
-
getOnErrorRenderer
public Renderable getOnErrorRenderer(OnErrorTypeEnum onErrorType, JRException e) throws JRException
Deprecated.- Throws:
JRException
-
getOnErrorRenderer
public Renderable getOnErrorRenderer(OnErrorTypeEnum onErrorType, JRRuntimeException e) throws JRRuntimeException
Deprecated.- Throws:
JRRuntimeException
-
getWrappingRenderable
public static Renderable getWrappingRenderable(JRRenderable deprecatedRenderer)
Deprecated.To be removed.
-
getWrappingRenderable
public static Renderable getWrappingRenderable(JRImageMapRenderer deprecatedRenderer)
Deprecated.To be removed.
-
getWrappingRenderable
public static Renderable getWrappingRenderable(Renderable renderable)
Deprecated.To be removed.
-
-