Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev] Report engine changes to support new chart features in BIRT 2.0 (Part II)

Title: Report engine changes to support new chart features in BIRT 2.0 (Part II)

- Summary:
Report engine changes to support new chart features in BIRT 2.0 (Part II)

- Bugzilla Bug (s) Resolved:
None

- Description:
Enhanced report engine to provide an engine service to the extended item, so that the extended item can call back functionalities in report engine. (Extended item were not able to call back before.) Right now, the engine service provide a ExecuteScript service to the extended item, so that the extended item may use DtE support to execute expressions.

Enhanced ExtendedItemExecutor and IImageItemContent to pass the image map related information to the emitter.
Implemented the SVG support in HTMLImageEmitter.
Enhanced XMLWriter to have a new utility function to output the unescaped strings.
Enhanced the HTMLImageEmitter to detect if an image map is returned from the chart engine along with the chart. If so, write out the image map with the chart to support the new "hot chart" feature.

- Tests Description:
Unit tests:
View a chart report. Manually replace the chart generated by chart engine with a SVG image. The SVG image can be shown correctly in the viewer.

Input a hard-coded image map to report engine. (The image map will eventually be returned by chart engine.) The "hot areas" defined in the image map is shown correctly in the viewer. Clicking the hot areas in the chart links to the destination correctly.

Regression tests:
Viewed charts/images in both HTML format and PDF format. Charts/images can be shown correctly.
Ran report engine JUnit test suite.

- Files Edited:
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/IImageItemContent.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/ImageItemContent.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/emitter/XMLWriter.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExtendedItemExecutor.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/extension/IReportItemGeneration.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/extension/IReportItemPresentation.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/extension/ReportItemGenerationBase.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/extension/ReportItemPresentationBase.java
/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLImageEmitter.java
/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLTags.java
/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/viewer/aggregation/layout/EngineFragment.java

- Files Added:
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/extension/IEngineService.java
/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/EngineService.java

- Notes to Build Team:

- Notes to Developers:

- Notes to QA: 
 
- Notes to Documentation:



Back to the top