public class JRImageRenderer extends JRAbstractRenderer
PROPERTY_IMAGE_DPIIMAGE_TYPE_GIF, IMAGE_TYPE_JPEG, IMAGE_TYPE_PNG, IMAGE_TYPE_TIFF, IMAGE_TYPE_UNKNOWN, MIME_TYPE_GIF, MIME_TYPE_JPEG, MIME_TYPE_PNG, MIME_TYPE_TIFF, TYPE_IMAGE, TYPE_SVG| Modifier | Constructor and Description |
|---|---|
protected |
JRImageRenderer(byte[] imageData) |
protected |
JRImageRenderer(String imageLocation) |
getIdprotected JRImageRenderer(byte[] imageData)
protected JRImageRenderer(String imageLocation)
public static JRImageRenderer getInstance(byte[] imageData)
public static JRRenderable getInstance(String imageLocation) throws JRException
RenderableUtil.getRenderable(String).JRExceptionpublic static JRRenderable getInstance(String imageLocation, OnErrorTypeEnum onErrorType) throws JRException
RenderableUtil.getRenderable(String, OnErrorTypeEnum).JRExceptionpublic static JRRenderable getInstance(String imageLocation, OnErrorTypeEnum onErrorType, boolean isLazy) throws JRException
RenderableUtil.getRenderable(String, OnErrorTypeEnum, boolean).JRExceptionpublic static JRRenderable getInstance(String imageLocation, OnErrorTypeEnum onErrorType, boolean isLazy, ClassLoader classLoader, URLStreamHandlerFactory urlHandlerFactory, FileResolver fileResolver) throws JRException
getInstance(String, OnErrorTypeEnum, boolean).JRExceptionpublic static JRRenderable getInstance(Image img, OnErrorTypeEnum onErrorType) throws JRException
RenderableUtil.getRenderable(Image, OnErrorTypeEnum).JRExceptionpublic static JRRenderable getInstance(Image image, byte imageType, OnErrorTypeEnum onErrorType) throws JRException
RenderableUtil.getRenderable(Image, ImageTypeEnum, OnErrorTypeEnum).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 static JRRenderable getInstance(InputStream is, OnErrorTypeEnum onErrorType) throws JRException
RenderableUtil.getRenderable(InputStream, OnErrorTypeEnum).JRExceptionpublic static JRRenderable getInstance(URL url, OnErrorTypeEnum onErrorType) throws JRException
RenderableUtil.getRenderable(URL, OnErrorTypeEnum).JRExceptionpublic static JRRenderable getInstance(File file, OnErrorTypeEnum onErrorType) throws JRException
RenderableUtil.getRenderable(File, OnErrorTypeEnum).JRExceptionpublic static JRRenderable getOnErrorRendererForDimension(JRRenderable renderer, OnErrorTypeEnum onErrorType) throws JRException
RenderableUtil.getOnErrorRendererForDimension(Renderable, OnErrorTypeEnum).JRExceptionpublic static JRRenderable getOnErrorRendererForImageData(JRRenderable renderer, OnErrorTypeEnum onErrorType) throws JRException
RenderableUtil.getOnErrorRendererForImageData(Renderable, OnErrorTypeEnum).JRExceptionpublic static JRImageRenderer getOnErrorRendererForImage(JasperReportsContext jasperReportsContext, JRImageRenderer renderer, OnErrorTypeEnum onErrorType) throws JRException
JRExceptionpublic static JRImageRenderer getOnErrorRendererForImage(JRImageRenderer renderer, OnErrorTypeEnum onErrorType) throws JRException
getOnErrorRendererForImage(JasperReportsContext, JRImageRenderer, OnErrorTypeEnum).JRExceptionpublic static JRImageRenderer getOnErrorRenderer(OnErrorTypeEnum onErrorType, JRException e) throws JRException
JRExceptionpublic static JRImageRenderer getOnErrorRenderer(OnErrorTypeEnum onErrorType, JRRuntimeException e) throws JRRuntimeException
JRRuntimeExceptionpublic Image getImage(JasperReportsContext jasperReportsContext) throws JRException
JRExceptionpublic Image getImage() throws JRException
getImage(JasperReportsContext).JRExceptionpublic String getImageLocation()
public byte getType()
getTypeValue().public byte getImageType()
getImageTypeValue().public RenderableTypeEnum getTypeValue()
getTypeValue in interface RenderablegetTypeValue in class JRAbstractRendererpublic ImageTypeEnum getImageTypeValue()
getImageTypeValue in interface RenderablegetImageTypeValue in class JRAbstractRendererpublic Dimension2D getDimension() throws JRException
getDimension(JasperReportsContext).JRExceptionpublic Dimension2D getDimension(JasperReportsContext jasperReportsContext) throws JRException
getDimension in interface RenderablegetDimension in class JRAbstractRendererJRExceptionpublic byte[] getImageData(JasperReportsContext jasperReportsContext) throws JRException
getImageData in interface RenderablegetImageData in class JRAbstractRendererJRExceptionpublic byte[] getImageData()
throws JRException
getImageData(JasperReportsContext).JRExceptionpublic void render(Graphics2D grx, Rectangle2D rectangle) throws JRException
render(JasperReportsContext, Graphics2D, Rectangle2D).JRExceptionpublic void render(JasperReportsContext jasperReportsContext, Graphics2D grx, Rectangle2D rectangle) throws JRException
render in interface Renderablerender in class JRAbstractRendererJRExceptionCopyright © 2012. All Rights Reserved.