|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Resource
org.apache.wicket.markup.html.WebResource
org.apache.wicket.markup.html.DynamicWebResource
org.wicketstuff.jasperreports.JRResource
org.wicketstuff.jasperreports.JRImageResource
public final class JRImageResource
Resource class for jasper reports PDF resources.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.wicket.markup.html.DynamicWebResource |
|---|
org.apache.wicket.markup.html.DynamicWebResource.ResourceState |
| Field Summary |
|---|
| Fields inherited from interface org.apache.wicket.IResourceListener |
|---|
INTERFACE |
| Constructor Summary | |
|---|---|
JRImageResource()
Construct without a report. |
|
JRImageResource(java.io.File report)
Construct. |
|
JRImageResource(java.io.InputStream report)
Construct. |
|
JRImageResource(java.net.URL report)
Construct. |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
|
java.lang.String |
getExtension()
Returns the extension for the resource's file. |
java.lang.String |
getFormat()
Gets the image type. |
protected org.apache.wicket.markup.html.DynamicWebResource.ResourceState |
getResourceState()
Gets the binary data by getting a new instance of JasperPrint and an exporter for generating the output. |
int |
getType()
Gets type of image (one of BufferedImage.TYPE_*). |
float |
getZoomRatio()
Gets the zoom ratio. |
net.sf.jasperreports.engine.JRAbstractExporter |
newExporter()
Called by getData to obtain an exporter instance. |
void |
setFormat(java.lang.String format)
Sets the image type. |
void |
setType(int type)
Sets type of image (one of BufferedImage.TYPE_*). |
void |
setZoomRatio(float ratio)
Sets the zoom ratio. |
protected byte[] |
toImageData(java.awt.image.BufferedImage image)
|
| Methods inherited from class org.wicketstuff.jasperreports.JRResource |
|---|
getConnectionProvider, getFileName, getJasperReport, getReportDataSource, getReportParameters, newJasperPrint, setConnectionProvider, setFileName, setHeaders, setJasperReport, setReportDataSource, setReportParameters |
| Methods inherited from class org.apache.wicket.markup.html.DynamicWebResource |
|---|
getLocale, getResourceStream |
| Methods inherited from class org.apache.wicket.markup.html.WebResource |
|---|
configureResponse, getCacheDuration |
| Methods inherited from class org.apache.wicket.Resource |
|---|
getParameters, invalidate, isCacheable, onResourceRequested, setCacheable, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JRImageResource()
public JRImageResource(java.io.InputStream report)
report - the report input streampublic JRImageResource(java.net.URL report)
report - the report input streampublic JRImageResource(java.io.File report)
report - the report input stream| Method Detail |
|---|
public final net.sf.jasperreports.engine.JRAbstractExporter newExporter()
JRResource
newExporter in class JRResourceJRResource.newExporter()protected org.apache.wicket.markup.html.DynamicWebResource.ResourceState getResourceState()
JRResource
getResourceState in class JRResourceJRResource.getResourceState()protected byte[] toImageData(java.awt.image.BufferedImage image)
image - The image to turn into data
public java.lang.String getContentType()
getContentType in class JRResourceJRResource.getContentType()public float getZoomRatio()
public void setZoomRatio(float ratio)
ratio - the zoom ratio used for the export. The default value is 1public java.lang.String getFormat()
public void setFormat(java.lang.String format)
format - the image type. The default value is 'png'public int getType()
public void setType(int type)
type - type of imagepublic java.lang.String getExtension()
JRResource
getExtension in class JRResourceJRResource.getExtension()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||