|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.engine.api.HTMLServerImageHandler
Default implementation for writing images in a form that is used in a web-application.
Field Summary | |
protected java.util.logging.Logger |
log
|
Constructor Summary | |
HTMLServerImageHandler()
dummy constructor |
Method Summary | |
protected java.lang.String |
createUniqueFileName(java.lang.String imageDir,
java.lang.String prefix)
returns a unique file name based on a directory and name prefix |
protected java.lang.String |
createUniqueFileName(java.lang.String imageDir,
java.lang.String prefix,
java.lang.String postfix)
creates a unique tempoary file to store an image |
void |
getImage(java.io.OutputStream out,
java.lang.String imageDir,
java.lang.String imageID)
get 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 HTMLServerImageHandler()
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.lang.String createUniqueFileName(java.lang.String imageDir, java.lang.String prefix, java.lang.String postfix)
imageDir
- directory to put image intoprefix
- file name prefixpostfix
- file name postfix
protected java.lang.String createUniqueFileName(java.lang.String imageDir, java.lang.String prefix)
imageDir
- directory to store the imageprefix
- prefix for the file name
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
public void getImage(java.io.OutputStream out, java.lang.String imageDir, java.lang.String imageID) throws EngineException
out
- the output stream of imageimageDir
- the image directoryimageID
- id of image
java.io.IOException
EngineException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |