|
||||||||||
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.HTMLServerImageHandler
public class HTMLServerImageHandler
Default implementation for writing images in a form that is used in a web-application.
Field Summary | |
---|---|
protected static int |
IMAGE_CACHE_SIZE
|
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)
Handle a temporary image . |
java.lang.String |
onCustomImage(IImage image,
java.lang.Object context)
Deprecated. |
java.lang.String |
onDesignImage(IImage image,
java.lang.Object context)
Deprecated. |
java.lang.String |
onDocImage(IImage image,
java.lang.Object context)
Deprecated. |
java.lang.String |
onFileImage(IImage image,
java.lang.Object context)
Deprecated. |
java.lang.String |
onURLImage(IImage image,
java.lang.Object context)
Deprecated. |
Methods inherited from class org.eclipse.birt.report.engine.api.HTMLImageHandler |
---|
addCachedImage, getCachedImage, getRenderContext, onCustomImage, onDesignImage, onDocImage, onFileImage, onURLImage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static int IMAGE_CACHE_SIZE
protected java.util.logging.Logger log
Constructor Detail |
---|
public HTMLServerImageHandler()
Method Detail |
---|
public java.lang.String onDesignImage(IImage image, java.lang.Object context)
onDesignImage
in interface IHTMLImageHandler
onDesignImage
in class HTMLImageHandler
image
- the image definition objectcontext
- the context for generating the URL
org.eclipse.birt.report.engine.api2.IHTMLImageHandler#onDesignImage(org.eclipse.birt.report.engine.api2.IImage,
java.lang.Object)
public java.lang.String onDocImage(IImage image, java.lang.Object context)
onDocImage
in interface IHTMLImageHandler
onDocImage
in class HTMLImageHandler
image
- the image definition objectcontext
- the context for generating the URL
org.eclipse.birt.report.engine.api2.IHTMLImageHandler#onDocImage(org.eclipse.birt.report.engine.api2.IImage,
java.lang.Object)
public java.lang.String onURLImage(IImage image, java.lang.Object context)
onURLImage
in interface IHTMLImageHandler
onURLImage
in class HTMLImageHandler
image
- the image definition objectcontext
- the context for generating the URL
org.eclipse.birt.report.engine.api2.IHTMLImageHandler#onURLImage(org.eclipse.birt.report.engine.api2.IImage,
java.lang.Object)
public java.lang.String onCustomImage(IImage image, java.lang.Object context)
onCustomImage
in interface IHTMLImageHandler
onCustomImage
in class HTMLImageHandler
image
- the image definition objectcontext
- the context for generating the URL
org.eclipse.birt.report.engine.api2.IHTMLImageHandler#onCustomImage(org.eclipse.birt.report.engine.api2.IImage,
java.lang.Object)
protected java.lang.String createUniqueFileName(java.lang.String imageDir, java.lang.String prefix)
imageDir
- directory to store the imageprefix
- prefix for the file name
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
public java.lang.String onFileImage(IImage image, java.lang.Object context)
onFileImage
in interface IHTMLImageHandler
onFileImage
in class HTMLImageHandler
image
- the image definition objectcontext
- the context for generating the URL
org.eclipse.birt.report.engine.api2.IHTMLImageHandler#onFileImage(org.eclipse.birt.report.engine.api2.IImage,
java.lang.Object)
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)
image
- represents the image design informationprefix
- image prefix in URLneedMap
- whether image map is needed
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 |