|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.engine.api.HTMLImageHandler
org.eclipse.birt.report.engine.api.HTMLCompleteImageHandler
Default implementation for writing images in a form that is compatible with a web browser's "HTML Complete" save option, i.e., writes images to a predefined folder. ImageDirectory: absolute path save the image into that directy, return the aboluste URL of that image. ImageDirectory: null, treat it as "." ImageDirectory: relative relative to the base folder. BaseFolder: parent folder of the output file, save the file into image directory and return the relative path (base on the base folder). BaseFolder:null, use "." as the base folder and return the aboluste path,
Field Summary | |
protected java.util.logging.Logger |
log
|
Constructor Summary | |
HTMLCompleteImageHandler()
dummy constructor |
Method Summary | |
protected java.io.File |
createUniqueFile(java.lang.String imageDir,
java.lang.String prefix,
java.lang.String postfix)
creates a unique tempoary file to store an image |
protected java.lang.String |
getImageMapID(IImage image)
returns the unique identifier for the image |
protected java.lang.String |
handleImage(IImage image,
java.lang.Object context,
java.lang.String prefix,
boolean needMap)
handles an image report item and returns an image URL |
java.lang.String |
onCustomImage(IImage image,
java.lang.Object context)
handles a custom image created for example, by chart extension. |
java.lang.String |
onDesignImage(IImage image,
java.lang.Object context)
handles a design image. |
java.lang.String |
onDocImage(IImage image,
java.lang.Object context)
handles a database image. |
java.lang.String |
onFileImage(IImage image,
java.lang.Object context)
handles a image specified as a on-disk URI. |
java.lang.String |
onURLImage(IImage image,
java.lang.Object context)
handles an image specified as an external URL. |
Methods inherited from class org.eclipse.birt.report.engine.api.HTMLImageHandler |
addCachedImage, getCachedImage, getRenderContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.logging.Logger log
Constructor Detail |
public HTMLCompleteImageHandler()
Method Detail |
public java.lang.String onDesignImage(IImage image, java.lang.Object context)
IHTMLImageHandler
onDesignImage
in interface IHTMLImageHandler
onDesignImage
in class HTMLImageHandler
public java.lang.String onDocImage(IImage image, java.lang.Object context)
IHTMLImageHandler
onDocImage
in interface IHTMLImageHandler
onDocImage
in class HTMLImageHandler
public java.lang.String onURLImage(IImage image, java.lang.Object context)
IHTMLImageHandler
onURLImage
in interface IHTMLImageHandler
onURLImage
in class HTMLImageHandler
public java.lang.String onCustomImage(IImage image, java.lang.Object context)
IHTMLImageHandler
onCustomImage
in interface IHTMLImageHandler
onCustomImage
in class HTMLImageHandler
protected java.io.File createUniqueFile(java.lang.String imageDir, java.lang.String prefix, java.lang.String postfix)
imageDir
- directory to put image intoprefix
- file name prefixpostfix
- file name postfix
public java.lang.String onFileImage(IImage image, java.lang.Object context)
IHTMLImageHandler
onFileImage
in interface IHTMLImageHandler
onFileImage
in class HTMLImageHandler
protected java.lang.String handleImage(IImage image, java.lang.Object context, java.lang.String prefix, boolean needMap)
image
- represents the image design informationcontext
- context informationprefix
- image prefix in URLneedMap
- whether image map is needed
protected java.lang.String getImageMapID(IImage image)
image
- the image object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |