|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.util.JRImageLoader
public class JRImageLoader
| Field Summary | |
|---|---|
static byte |
CHART_IMAGE
|
static byte |
CROSSTAB_IMAGE
|
static byte |
NO_IMAGE
|
static byte |
SUBREPORT_IMAGE
|
| Constructor Summary | |
|---|---|
JRImageLoader()
|
|
| Method Summary | |
|---|---|
static java.awt.Image |
getImage(byte index)
|
static java.awt.Image |
loadImage(byte[] bytes)
|
protected static java.awt.Image |
loadImage(java.lang.String image)
Loads an image from an specified resource. |
static byte[] |
loadImageDataFromAWTImage(java.awt.image.BufferedImage bi)
Deprecated. Replaced by loadImageDataFromAWTImage(Image, byte). |
static byte[] |
loadImageDataFromAWTImage(java.awt.Image image)
Deprecated. Replaced by loadImageDataFromAWTImage(Image, byte). |
static byte[] |
loadImageDataFromAWTImage(java.awt.Image image,
byte imageType)
Encoding the image object using an image encoder that supports the supplied image type. |
static byte[] |
loadImageDataFromFile(java.io.File file)
Deprecated. Replaced by JRLoader.loadBytes(File). |
static byte[] |
loadImageDataFromInputStream(java.io.InputStream is)
Deprecated. Replaced by JRLoader.loadBytes(InputStream). |
static byte[] |
loadImageDataFromLocation(java.lang.String location)
Deprecated. Replaced by JRLoader.loadBytesFromLocation(String). |
static byte[] |
loadImageDataFromLocation(java.lang.String location,
java.lang.ClassLoader classLoader)
Deprecated. Replaced by JRLoader.loadBytesFromLocation(String, ClassLoader). |
static byte[] |
loadImageDataFromLocation(java.lang.String location,
java.lang.ClassLoader classLoader,
java.net.URLStreamHandlerFactory urlHandlerFactory)
Deprecated. Replaced by JRLoader.loadBytesFromLocation(String, ClassLoader, URLStreamHandlerFactory). |
static byte[] |
loadImageDataFromURL(java.net.URL url)
Deprecated. Replaced by JRLoader.loadBytes(URL). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte NO_IMAGE
public static final byte SUBREPORT_IMAGE
public static final byte CHART_IMAGE
public static final byte CROSSTAB_IMAGE
| Constructor Detail |
|---|
public JRImageLoader()
| Method Detail |
|---|
public static byte[] loadImageDataFromFile(java.io.File file)
throws JRException
JRLoader.loadBytes(File).
JRException
public static byte[] loadImageDataFromURL(java.net.URL url)
throws JRException
JRLoader.loadBytes(URL).
JRException
public static byte[] loadImageDataFromInputStream(java.io.InputStream is)
throws JRException
JRLoader.loadBytes(InputStream).
JRException
public static byte[] loadImageDataFromLocation(java.lang.String location)
throws JRException
JRLoader.loadBytesFromLocation(String).
JRException
public static byte[] loadImageDataFromLocation(java.lang.String location,
java.lang.ClassLoader classLoader)
throws JRException
JRLoader.loadBytesFromLocation(String, ClassLoader).
JRException
public static byte[] loadImageDataFromLocation(java.lang.String location,
java.lang.ClassLoader classLoader,
java.net.URLStreamHandlerFactory urlHandlerFactory)
throws JRException
JRLoader.loadBytesFromLocation(String, ClassLoader, URLStreamHandlerFactory).
JRException
public static byte[] loadImageDataFromAWTImage(java.awt.Image image,
byte imageType)
throws JRException
image - the java.awt.Image object to encodeimageType - the type of the image as specified by one of the constants defined in the JRRenderable interface
JRException
public static byte[] loadImageDataFromAWTImage(java.awt.image.BufferedImage bi)
throws JRException
loadImageDataFromAWTImage(Image, byte).
JRException
public static byte[] loadImageDataFromAWTImage(java.awt.Image image)
throws JRException
loadImageDataFromAWTImage(Image, byte).
JRException
public static java.awt.Image getImage(byte index)
throws JRException
JRException
public static java.awt.Image loadImage(byte[] bytes)
throws JRException
JRException
protected static java.awt.Image loadImage(java.lang.String image)
throws JRException
image - the resource name
JRException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||