|
||||||||||
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
public class 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 static int |
IMAGE_CACHE_SIZE
|
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 temporary 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)
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 HTMLCompleteImageHandler()
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.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 suffix
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 getImageMapID(IImage image)
image
- the image object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |