|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.tptp.platform.report.birt).
public interface IDIImageProvider
TODO: read and comment again:
Image provider is the way to get an IImage from underlaying graphic system and
various sources as Http, or file system.
This class have an image pool to not create Image resource each time you need, this means
you don't have to dispose getted Image, image provider will do ...
It's the responsability of the IDIImageProvider creator to call dispose to free all
the resource image allocated by this image provider. As some modern system have limited resources,
do not dispose image might degenerate into a "no more handle" crash.
Note:: This class provides IImage for IGC, those image must use pixel coordinates measure.
| Method Summary | |
|---|---|
void |
addImageSearchPath(java.lang.String path)
Deprecated. Add a search path for images for search in file system, only if search path isn't already in. |
void |
addResourceClass(java.lang.Class c)
Deprecated. Add a new class to get image from it's resources (do not include if class i already in) |
void |
clear()
Deprecated. Clear this object, do a full dispose of contained images, and clear search path and resources classes. |
void |
clearImageSearchPath()
Deprecated. Clear current search path. |
void |
dispose()
Deprecated. Dispose all image system's resource (including broken image) held by this image provider, do not forget to call this method else you'll become under hand of the "no more handle" crash... |
IImage |
getBrokenImage()
Deprecated. |
IImage |
getImage(java.lang.String name)
Deprecated. |
void |
removeImageSearchPath(java.lang.String path)
Deprecated. Remove a search path for images for search in file system. |
boolean |
removeResourceClass(java.lang.Class c)
Deprecated. Remove a class from the resources classes. |
java.lang.String |
searchImage(java.lang.String ip)
Deprecated. |
void |
setBrokenImage(IImage image)
Deprecated. Change current broken image, disposing current one before. |
void |
setImage(java.lang.String name,
IImage image)
Deprecated. sets an image into the image provider with its associated name. |
void |
setImageSearchPath(java.lang.String[] paths)
Deprecated. Change current search path for images, used to get image in file system. |
IImage |
takeImage(java.lang.String name)
Deprecated. |
| Method Detail |
|---|
IImage getBrokenImage()
void setBrokenImage(IImage image)
IImage getImage(java.lang.String name)
void setImage(java.lang.String name,
IImage image)
getImage(String)IImage takeImage(java.lang.String name)
java.lang.String searchImage(java.lang.String ip)
void dispose()
dispose in interface IDisposablevoid clear()
void setImageSearchPath(java.lang.String[] paths)
void clearImageSearchPath()
void addImageSearchPath(java.lang.String path)
void removeImageSearchPath(java.lang.String path)
void addResourceClass(java.lang.Class c)
Class.getResourceAsStream(java.lang.String)boolean removeResourceClass(java.lang.Class c)
|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||