This extension point specifies how the new report item should be instantiated, processed, and rendered at presentation (rendering) time. In a server environment, the plugin registry uses this extension point registration to discover supported report item extensions. a fully qualified identifier of the target extension point an optional identifier of the extension instance an optional name of the extension instance the unique name of the extended item, i.e., "org.eclipse.birt.chart" for BIRT supplied chart extension. the java class that implements the <code>IReportItemPresentation</code> The supported rendering formats for this extended item. The value for this attribute is a comma-separated string, i.e., "HTML,PDF,EXCEL', etc. The string is case-insensitive. 1.0 The following is a sample usage of the reportItemPresentation extension point: <p> <pre> <extension point="org.eclipse.birt.report.engine.reportitempresentation" name="chart presentation extension"> <reportItem name="org.eclipse.birt.chart" class="org.eclipse.birt.report.chartitem.ChartPresentation" supportedFormats="FO,HTML,PDF"/> </extension> </pre> <p> The value of the class attribute must be the fully qualified name of a class that implements <code>org.eclipse.birt.engine.extension.IReportItemPresentation</code>. The interface provides the following functions: <ul> <li><code>public void setModelObject(ExtendedItemHandle handle)</code> ---- passes the model object to the extension provider. </li> <li><code>public void setResolution(int dpi)</code> ---- passes the rendering environment resolution (dpi, i.e., dot per inch) to extension provider.</li> <li><code>public void setOutputFormat(String outputFormat)</code> ---- passes the output format, i.e., HTMl, PDF, etc. to extension provider.</li> <li><code>public void setSupportedImageFormats(String supportedImageFormats)</code> ---- passes the supported image formats in the rendering environments to the extension provider. Image formats are separated by semi-colon. For example, the argument could be JPG;PNG;BMP;SVG</li> <li><code>public void setLocale(Locale locale)</code> ---- passes the rendering locale to the extension provider.</li> <li><code>public Object onRowSets(IRowSet[] rowSets) throws BirtException</code> ---- processes the extended item in report presentation environment. The data that the report item needs is passed in through the rowSets array. The return value captures the presentation time output of the report item, and differs for different rendering primitives. </li> <li><code>public void deserialize(InputStream istream)</code> ---- deserializes the report item generation time state</li> <li><code>public int getOutputType(String mimeType)</code> ---- returns the output type, which could be one of the supported primitive, i.e., image, string, html segment, etc.</li> <li><code>public void Size getSize()</code> ---- gets the size of the extended item. The size is a Dimension object. The width and height can only be in absolute units (inch, mm, etc.) or pixel. It can not be a relative size such as 150% or 1.2em. An extended item can obtain its design-time size information by querying DE. This function is needed because the actual size may not be the same as the design-time size.</li> <li><code>public void finish()</code> ---- performs cleanup jobs</li><p> </ul> Chart as an extended item Copyright (c) 2005 Actuate Corporation. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html<br><br> Contributors: Actuate Corporation - initial API and implementation