Class CachedImage
java.lang.Object
org.eclipse.birt.report.engine.api.CachedImage
Cached Image Created by the IHTMLImageHandler.
Before call the IHTMLImageHandler to generate the image, the report engine
will first ask the handler if there exits a cache for that image. If the
cache finded, the report engine will use that cache directly and won't
request the handle to create the new image instance any more.
-
Constructor Summary
ConstructorsConstructorDescriptioncreate an empty cache.CachedImage
(String id, String url) create a instance of cached image. -
Method Summary
Modifier and TypeMethodDescriptiongetID()
get the id of the image.get the image map of the image.get the image sizeget the mime type of the image.getURL()
get the URL of the cached image.void
set the id of the cached image.void
setImageMap
(String imageMap) set the image map of the image.void
setImageSize
(ImageSize size) set the image sizevoid
setMIMEType
(String mimeType) set the mime type of the image.void
set the image URL.
-
Constructor Details
-
CachedImage
public CachedImage()create an empty cache. -
CachedImage
create a instance of cached image.- Parameters:
id
- id of the image.url
- url of the image
-
-
Method Details
-
setID
set the id of the cached image.- Parameters:
id
- id of the image.
-
getID
get the id of the image.- Returns:
- id of the image.
-
getURL
get the URL of the cached image. The image content can be reterive from that URL.- Returns:
- url of the image.
-
setURL
set the image URL.- Parameters:
url
- url which refer to the image
-
getImageMap
get the image map of the image. the image map represents in HTML format.- Returns:
- the image map of the image.
-
setImageMap
set the image map of the image. the image map is in HTML format.- Parameters:
imageMap
- image map in HTML format.
-
getMIMEType
get the mime type of the image.- Returns:
- the mime type.
-
setMIMEType
set the mime type of the image.- Parameters:
mimeType
- the mime type of the image
-
getImageSize
get the image size -
setImageSize
set the image size
-