An image URL element template, which reads the image from a static URL.
| Method from org.jfree.report.filter.templates.DrawableURLElementTemplate Detail: |
public Object clone() throws CloneNotSupportedException {
final DrawableURLElementTemplate template = (DrawableURLElementTemplate) super.clone();
template.imageLoadFilter = (DrawableLoadFilter) imageLoadFilter.clone();
template.urlFilter = (URLFilter) template.imageLoadFilter.getDataSource();
template.staticDataSource = (StaticDataSource) template.urlFilter.getDataSource();
return template;
}
|
public URL getBaseURL() {
return urlFilter.getBaseURL();
}
|
public String getContent() {
return (String) (staticDataSource.getValue(null, null));
}
Returns the URL text for the template. |
public Object getValue(ExpressionRuntime runtime,
Element element) {
return imageLoadFilter.getValue(runtime, element);
}
Returns the current value for the data source. |
public void setBaseURL(URL baseURL) {
urlFilter.setBaseURL(baseURL);
}
|
public void setContent(String content) {
staticDataSource.setValue(content);
}
Sets the URL for the template. |