Package net.sf.jasperreports.engine
Class RenderableUtil
- java.lang.Object
-
- net.sf.jasperreports.engine.RenderableUtil
-
public class RenderableUtil extends java.lang.ObjectDeprecated.Replaced byRendererUtil.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXCEPTION_MESSAGE_KEY_IMAGE_ERRORDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RenderableUtilgetInstance(JasperReportsContext jasperReportsContext)Deprecated.RenderablegetOnErrorRenderer(OnErrorTypeEnum onErrorType, JRException e)Deprecated.RenderablegetOnErrorRenderer(OnErrorTypeEnum onErrorType, JRRuntimeException e)Deprecated.RenderablegetOnErrorRendererForDimension(Renderable renderer, OnErrorTypeEnum onErrorType)Deprecated.To be removed.RenderablegetOnErrorRendererForDimension(RenderersCache renderersCache, Renderable renderer, OnErrorTypeEnum onErrorType)Deprecated.To be removed.RenderablegetOnErrorRendererForImageData(Renderable renderer, OnErrorTypeEnum onErrorType)Deprecated.To be removed.RenderablegetRenderable(byte[] imageData)Deprecated.RenderablegetRenderable(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.RenderablegetRenderable(java.awt.Image img, OnErrorTypeEnum onErrorType)Deprecated.RenderablegetRenderable(java.io.File file, OnErrorTypeEnum onErrorType)Deprecated.RenderablegetRenderable(java.io.InputStream is, OnErrorTypeEnum onErrorType)Deprecated.RenderablegetRenderable(java.lang.String imageLocation)Deprecated.Replaced byResourceRenderer.getInstance(String, boolean).RenderablegetRenderable(java.lang.String imageLocation, OnErrorTypeEnum onErrorType)Deprecated.Replaced byResourceRenderer.getInstance(String, boolean).RenderablegetRenderable(java.lang.String imageLocation, OnErrorTypeEnum onErrorType, boolean isLazy)Deprecated.RenderablegetRenderable(java.net.URL url, OnErrorTypeEnum onErrorType)Deprecated.static RenderablegetWrappingRenderable(JRImageMapRenderer deprecatedRenderer)Deprecated.To be removed.static RenderablegetWrappingRenderable(JRRenderable deprecatedRenderer)Deprecated.To be removed.static RenderablegetWrappingRenderable(Renderable renderable)Deprecated.To be removed.RenderablehandleImageError(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.
-
-