|
||||||||||
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 final class JRImageLoader
Field Summary | |
---|---|
static java.lang.String |
CHART_IMAGE_RESOURCE
|
static java.lang.String |
COMPONENT_IMAGE_RESOURCE
|
static java.lang.String |
CROSSTAB_IMAGE_RESOURCE
|
static java.lang.String |
NO_IMAGE_RESOURCE
|
static java.lang.String |
PROPERTY_IMAGE_ENCODER
Configuration property specifying the name of the class implementing the JRImageEncoder interface
to be used by the engine. |
static java.lang.String |
PROPERTY_IMAGE_READER
Configuration property specifying the name of the class implementing the JRImageReader interface
to be used by the engine. |
static java.lang.String |
SUBREPORT_IMAGE_RESOURCE
|
Method Summary | |
---|---|
static java.awt.Image |
loadImage(byte[] bytes)
|
protected static java.awt.Image |
loadImage(java.lang.String image)
Deprecated. To be removed in future releases. |
static byte[] |
loadImageDataFromAWTImage(java.awt.Image image,
byte imageType)
Encoding the image object using an image encoder that supports the supplied image type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_IMAGE_READER
JRImageReader
interface
to be used by the engine. If not set, the engine will try to an image reader implementation that corresponds to the JVM version.
public static final java.lang.String PROPERTY_IMAGE_ENCODER
JRImageEncoder
interface
to be used by the engine. If not set, the engine will try to an image encoder implementation that corresponds to the JVM version.
public static final java.lang.String NO_IMAGE_RESOURCE
public static final java.lang.String SUBREPORT_IMAGE_RESOURCE
public static final java.lang.String CHART_IMAGE_RESOURCE
public static final java.lang.String CROSSTAB_IMAGE_RESOURCE
public static final java.lang.String COMPONENT_IMAGE_RESOURCE
Method Detail |
---|
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 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 |