net.sf.jasperreports.engine
Class JRImageRenderer

java.lang.Object
  extended bynet.sf.jasperreports.engine.JRImageRenderer
All Implemented Interfaces:
JRRenderable, java.io.Serializable

public class JRImageRenderer
extends java.lang.Object
implements JRRenderable

Version:
$Id: JRImageRenderer.java,v 1.28 2005/09/07 13:58:26 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface net.sf.jasperreports.engine.JRRenderable
TYPE_IMAGE, TYPE_SVG
 
Method Summary
 java.awt.geom.Dimension2D getDimension()
           
 java.awt.Image getImage()
           
 byte[] getImageData()
           
 java.lang.String getImageLocation()
           
static JRImageRenderer getInstance(byte[] imageData)
           
static JRImageRenderer getInstance(byte[] imageData, byte onErrorType)
           
static JRRenderable getInstance(java.io.File file, byte onErrorType)
           
static JRRenderable getInstance(java.awt.Image img, byte onErrorType)
           
static JRRenderable getInstance(java.io.InputStream is, byte onErrorType)
           
static JRRenderable getInstance(java.lang.String imageLocation)
           
static JRRenderable getInstance(java.lang.String imageLocation, byte onErrorType)
           
static JRRenderable getInstance(java.lang.String imageLocation, byte onErrorType, boolean isLazy)
           
static JRRenderable getInstance(java.net.URL url, byte onErrorType)
           
 byte getType()
           
 void render(java.awt.Graphics2D grx, java.awt.geom.Rectangle2D rectanle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JRImageRenderer getInstance(byte[] imageData)

getInstance

public static JRImageRenderer getInstance(byte[] imageData,
                                          byte onErrorType)

getInstance

public static JRRenderable getInstance(java.lang.String imageLocation)
                                throws JRException
Throws:
JRException

getInstance

public static JRRenderable getInstance(java.lang.String imageLocation,
                                       byte onErrorType)
                                throws JRException
Throws:
JRException

getInstance

public static JRRenderable getInstance(java.lang.String imageLocation,
                                       byte onErrorType,
                                       boolean isLazy)
                                throws JRException
Throws:
JRException

getInstance

public static JRRenderable getInstance(java.awt.Image img,
                                       byte onErrorType)
                                throws JRException
Throws:
JRException

getInstance

public static JRRenderable getInstance(java.io.InputStream is,
                                       byte onErrorType)
                                throws JRException
Throws:
JRException

getInstance

public static JRRenderable getInstance(java.net.URL url,
                                       byte onErrorType)
                                throws JRException
Throws:
JRException

getInstance

public static JRRenderable getInstance(java.io.File file,
                                       byte onErrorType)
                                throws JRException
Throws:
JRException

getImage

public java.awt.Image getImage()
                        throws JRException
Throws:
JRException

getImageLocation

public java.lang.String getImageLocation()

getType

public byte getType()
Specified by:
getType in interface JRRenderable

getDimension

public java.awt.geom.Dimension2D getDimension()
                                       throws JRException
Specified by:
getDimension in interface JRRenderable
Throws:
JRException

getImageData

public byte[] getImageData()
                    throws JRException
Specified by:
getImageData in interface JRRenderable
Throws:
JRException

render

public void render(java.awt.Graphics2D grx,
                   java.awt.geom.Rectangle2D rectanle)
            throws JRException
Specified by:
render in interface JRRenderable
Throws:
JRException


© 2001-2005 JasperSoft Corporation www.jaspersoft.com