|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.JRAbstractRenderer
net.sf.jasperreports.engine.JRImageRenderer
public class JRImageRenderer
Field Summary |
---|
Fields inherited from interface net.sf.jasperreports.engine.JRRenderable |
---|
IMAGE_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 |
Constructor Summary | |
---|---|
protected |
JRImageRenderer(byte[] imageData)
|
protected |
JRImageRenderer(java.lang.String imageLocation)
|
Method Summary | |
---|---|
static java.lang.ClassLoader |
getClassLoader()
Deprecated. replaced by JRResourcesUtil.getThreadClassLoader() |
java.awt.geom.Dimension2D |
getDimension()
|
java.awt.Image |
getImage()
|
byte[] |
getImageData()
|
java.lang.String |
getImageLocation()
|
byte |
getImageType()
|
static JRImageRenderer |
getInstance(byte[] imageData)
|
static JRRenderable |
getInstance(java.io.File file,
byte onErrorType)
Deprecated. Replaced by getInstance(File, OnErrorTypeEnum) . |
static JRRenderable |
getInstance(java.io.File file,
OnErrorTypeEnum onErrorType)
|
static JRRenderable |
getInstance(java.awt.Image img,
byte onErrorType)
Deprecated. Replaced by getInstance(Image, OnErrorTypeEnum) . |
static JRRenderable |
getInstance(java.awt.Image image,
byte imageType,
byte onErrorType)
Deprecated. Replaced by getInstance(Image, OnErrorTypeEnum) . |
static JRRenderable |
getInstance(java.awt.Image image,
byte 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. |
static JRRenderable |
getInstance(java.awt.Image img,
OnErrorTypeEnum onErrorType)
|
static JRRenderable |
getInstance(java.io.InputStream is,
byte onErrorType)
Deprecated. Replaced by getInstance(InputStream, OnErrorTypeEnum) . |
static JRRenderable |
getInstance(java.io.InputStream is,
OnErrorTypeEnum onErrorType)
|
static JRRenderable |
getInstance(java.lang.String imageLocation)
|
static JRRenderable |
getInstance(java.lang.String imageLocation,
byte onErrorType)
Deprecated. Replaced by getInstance(String, OnErrorTypeEnum) . |
static JRRenderable |
getInstance(java.lang.String imageLocation,
byte onErrorType,
boolean isLazy)
Deprecated. Replaced by getInstance(String, OnErrorTypeEnum, boolean) . |
static JRRenderable |
getInstance(java.lang.String imageLocation,
byte onErrorType,
boolean isLazy,
java.lang.ClassLoader classLoader,
java.net.URLStreamHandlerFactory urlHandlerFactory,
FileResolver fileResolver)
Deprecated. Replaced by getInstance(String, OnErrorTypeEnum, boolean, ClassLoader, URLStreamHandlerFactory, FileResolver) . |
static JRRenderable |
getInstance(java.lang.String imageLocation,
OnErrorTypeEnum onErrorType)
|
static JRRenderable |
getInstance(java.lang.String imageLocation,
OnErrorTypeEnum onErrorType,
boolean isLazy)
|
static JRRenderable |
getInstance(java.lang.String imageLocation,
OnErrorTypeEnum onErrorType,
boolean isLazy,
java.lang.ClassLoader classLoader,
java.net.URLStreamHandlerFactory urlHandlerFactory,
FileResolver fileResolver)
|
static JRRenderable |
getInstance(java.net.URL url,
byte onErrorType)
Deprecated. Replaced by getInstance(URL, OnErrorTypeEnum) . |
static JRRenderable |
getInstance(java.net.URL url,
OnErrorTypeEnum onErrorType)
|
static JRRenderable |
getOnErrorRendererForDimension(JRRenderable renderer,
byte onErrorType)
Deprecated. Replaced by getOnErrorRendererForDimension(JRRenderable, OnErrorTypeEnum) . |
static JRRenderable |
getOnErrorRendererForDimension(JRRenderable renderer,
OnErrorTypeEnum onErrorType)
|
static JRImageRenderer |
getOnErrorRendererForImage(JRImageRenderer renderer,
byte onErrorType)
Deprecated. Replaced by getOnErrorRendererForImage(JRImageRenderer, OnErrorTypeEnum) . |
static JRImageRenderer |
getOnErrorRendererForImage(JRImageRenderer renderer,
OnErrorTypeEnum onErrorType)
|
static JRRenderable |
getOnErrorRendererForImageData(JRRenderable renderer,
byte onErrorType)
Deprecated. Replaced by getOnErrorRendererForImageData(JRRenderable, OnErrorTypeEnum) . |
static JRRenderable |
getOnErrorRendererForImageData(JRRenderable renderer,
OnErrorTypeEnum onErrorType)
|
byte |
getType()
|
void |
render(java.awt.Graphics2D grx,
java.awt.geom.Rectangle2D rectangle)
|
static void |
setClassLoader(java.lang.ClassLoader classLoader)
Deprecated. replace by JRResourcesUtil.setThreadClassLoader(ClassLoader) |
Methods inherited from class net.sf.jasperreports.engine.JRAbstractRenderer |
---|
getId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JRImageRenderer(byte[] imageData)
protected JRImageRenderer(java.lang.String imageLocation)
Method Detail |
---|
public static java.lang.ClassLoader getClassLoader()
JRResourcesUtil.getThreadClassLoader()
public static void setClassLoader(java.lang.ClassLoader classLoader)
JRResourcesUtil.setThreadClassLoader(ClassLoader)
public static JRImageRenderer getInstance(byte[] imageData)
public static JRRenderable getInstance(java.lang.String imageLocation) throws JRException
JRException
public static JRRenderable getInstance(java.lang.String imageLocation, byte onErrorType) throws JRException
getInstance(String, OnErrorTypeEnum)
.
JRException
public static JRRenderable getInstance(java.lang.String imageLocation, OnErrorTypeEnum onErrorType) throws JRException
JRException
public static JRRenderable getInstance(java.lang.String imageLocation, byte onErrorType, boolean isLazy) throws JRException
getInstance(String, OnErrorTypeEnum, boolean)
.
JRException
public static JRRenderable getInstance(java.lang.String imageLocation, OnErrorTypeEnum onErrorType, boolean isLazy) throws JRException
JRException
public static JRRenderable getInstance(java.lang.String imageLocation, byte onErrorType, boolean isLazy, java.lang.ClassLoader classLoader, java.net.URLStreamHandlerFactory urlHandlerFactory, FileResolver fileResolver) throws JRException
getInstance(String, OnErrorTypeEnum, boolean, ClassLoader, URLStreamHandlerFactory, FileResolver)
.
JRException
public static JRRenderable getInstance(java.lang.String imageLocation, OnErrorTypeEnum onErrorType, boolean isLazy, java.lang.ClassLoader classLoader, java.net.URLStreamHandlerFactory urlHandlerFactory, FileResolver fileResolver) throws JRException
JRException
public static JRRenderable getInstance(java.awt.Image img, byte onErrorType) throws JRException
getInstance(Image, OnErrorTypeEnum)
.
JRException
public static JRRenderable getInstance(java.awt.Image img, OnErrorTypeEnum onErrorType) throws JRException
JRException
public static JRRenderable getInstance(java.awt.Image image, byte imageType, byte onErrorType) throws JRException
getInstance(Image, OnErrorTypeEnum)
.
JRException
public static JRRenderable getInstance(java.awt.Image image, byte 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 static JRRenderable getInstance(java.io.InputStream is, byte onErrorType) throws JRException
getInstance(InputStream, OnErrorTypeEnum)
.
JRException
public static JRRenderable getInstance(java.io.InputStream is, OnErrorTypeEnum onErrorType) throws JRException
JRException
public static JRRenderable getInstance(java.net.URL url, byte onErrorType) throws JRException
getInstance(URL, OnErrorTypeEnum)
.
JRException
public static JRRenderable getInstance(java.net.URL url, OnErrorTypeEnum onErrorType) throws JRException
JRException
public static JRRenderable getInstance(java.io.File file, byte onErrorType) throws JRException
getInstance(File, OnErrorTypeEnum)
.
JRException
public static JRRenderable getInstance(java.io.File file, OnErrorTypeEnum onErrorType) throws JRException
JRException
public static JRRenderable getOnErrorRendererForDimension(JRRenderable renderer, byte onErrorType) throws JRException
getOnErrorRendererForDimension(JRRenderable, OnErrorTypeEnum)
.
JRException
public static JRRenderable getOnErrorRendererForDimension(JRRenderable renderer, OnErrorTypeEnum onErrorType) throws JRException
JRException
public static JRRenderable getOnErrorRendererForImageData(JRRenderable renderer, byte onErrorType) throws JRException
getOnErrorRendererForImageData(JRRenderable, OnErrorTypeEnum)
.
JRException
public static JRRenderable getOnErrorRendererForImageData(JRRenderable renderer, OnErrorTypeEnum onErrorType) throws JRException
JRException
public static JRImageRenderer getOnErrorRendererForImage(JRImageRenderer renderer, byte onErrorType) throws JRException
getOnErrorRendererForImage(JRImageRenderer, OnErrorTypeEnum)
.
JRException
public static JRImageRenderer getOnErrorRendererForImage(JRImageRenderer renderer, OnErrorTypeEnum onErrorType) throws JRException
JRException
public java.awt.Image getImage() throws JRException
JRException
public java.lang.String getImageLocation()
public byte getType()
public byte getImageType()
public java.awt.geom.Dimension2D getDimension() throws JRException
JRException
public byte[] getImageData() throws JRException
JRException
public void render(java.awt.Graphics2D grx, java.awt.geom.Rectangle2D rectangle) throws JRException
JRException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |