|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.
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 |
protected java.lang.String |
handleTempImage(IImage image,
java.lang.String prefix,
boolean needMap)
|
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 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
image
- the image definition objectcontext
- the context for generating the URL
public java.lang.String onDocImage(IImage image, java.lang.Object context)
IHTMLImageHandler
onDocImage
in interface IHTMLImageHandler
image
- the image definition objectcontext
- the context for generating the URL
public java.lang.String onURLImage(IImage image, java.lang.Object context)
IHTMLImageHandler
onURLImage
in interface IHTMLImageHandler
image
- the image definition objectcontext
- the context for generating the URL
public java.lang.String onCustomImage(IImage image, java.lang.Object context)
IHTMLImageHandler
onCustomImage
in interface IHTMLImageHandler
image
- the image definition objectcontext
- the context for generating the URL
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
image
- the image definition objectcontext
- the context for generating the URL
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 handleTempImage(IImage image, java.lang.String prefix, boolean needMap)
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 |