|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrefinery.report.filter.ImageLoadFilter
The image load filter is used to load images during the report generation process.
This filter expects its datasource to return a java.net.URL. If the datasource does
not return an URL, null is returned.
This filter is mostly used in conjunction with the URLFilter, which creates URLs from Strings and files if nessesary.
The url is used to create a new imagereference which is returned to the caller. The loaded/created imagereference is stored in an internal cache.
This filter can be used to dynamically change images of a report, a very nice feature for photo albums and catalogs for instance.
This filter will return null, if something else than an URL was retrieved from the assigned datasource
| Constructor Summary | |
ImageLoadFilter()
creates a new ImageLoadFilter with a cache size of 10. |
|
ImageLoadFilter(int cacheSize)
Creates a new ImageLoadFilter with the defined cache size. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones the filter. |
DataSource |
getDataSource()
Returns the data source for the filter. |
java.lang.Object |
getValue()
Reads this filter's datasource and if the source returned an URL, tries to form a imagereference. |
void |
setDataSource(DataSource ds)
Sets the data source. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageLoadFilter()
public ImageLoadFilter(int cacheSize)
cacheSize - the cache size.| Method Detail |
public java.lang.Object getValue()
getValue in interface DataSourcepublic DataSource getDataSource()
getDataSource in interface DataTargetpublic void setDataSource(DataSource ds)
setDataSource in interface DataTargetds - The data source.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface DataSourcejava.lang.CloneNotSupportedException - this should never happen.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||