|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.RenderableUtil
public class RenderableUtil
Method Summary | |
---|---|
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(java.io.File file,
OnErrorTypeEnum onErrorType)
|
Renderable |
getRenderable(java.awt.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(java.awt.Image img,
OnErrorTypeEnum onErrorType)
|
Renderable |
getRenderable(java.io.InputStream is,
OnErrorTypeEnum onErrorType)
|
Renderable |
getRenderable(java.lang.String imageLocation)
|
Renderable |
getRenderable(java.lang.String imageLocation,
OnErrorTypeEnum onErrorType)
|
Renderable |
getRenderable(java.lang.String imageLocation,
OnErrorTypeEnum onErrorType,
boolean isLazy)
|
Renderable |
getRenderable(java.net.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(java.lang.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); } } |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RenderableUtil getInstance(JasperReportsContext jasperReportsContext)
public Renderable getRenderable(byte[] imageData)
public Renderable getRenderable(java.lang.String imageLocation) throws JRException
JRException
public Renderable getRenderable(java.lang.String imageLocation, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getRenderable(java.lang.String imageLocation, OnErrorTypeEnum onErrorType, boolean isLazy) throws JRException
JRException
public Renderable getRenderable(java.awt.Image img, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getRenderable(java.awt.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(java.io.InputStream is, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getRenderable(java.net.URL url, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getRenderable(java.io.File file, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getOnErrorRendererForDimension(Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
JRException
public Renderable getOnErrorRendererForImageData(Renderable renderer, OnErrorTypeEnum onErrorType) throws JRException
JRException
protected Renderable handleImageError(java.lang.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |