| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.gmf.runtime.draw2d.ui.render"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.gmf.runtime.draw2d.ui.render" id="renderedImageFactory" name="Rendered Image Factory"/> |
| </appInfo> |
| <documentation> |
| This extension point is used to define an image type to allow auto detection of an image buffer. The image type can instantiate an (<tt>RenderedImage</tt>) which can subsequently be rendered using the (<tt>ScalableImageFigure</tt>) class. |
| |
| In the extension point, the client points to a factory class which they create implementing the (<tt>RenderedImageType</tt>) interface. The (<tt>RenderedImageFactory</tt>) static class calls the extension point to compile a list of image types to query. When the client calls the (<tt>RenderedImageFactory</tt>) to retrieve the proper (<tt>RenderedImage</tt>), it will ask each type whether it can handle the particular image buffer. If the image buffer is auto-detected by the type, then the type will instatiate and return a (<tt>RenderedImage</tt>) object. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="factory"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="factory"> |
| <complexType> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.gmf.runtime.draw2d.ui.render.factory.RenderedImageType"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| GMF 1.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| An extension to the renderedImageFactory would require the implementation of the (<tt>RenderedImageType</tt>) interface. |
| |
| The following is an example plugin.xml entry for a renderedImageFactory extension: |
| |
| <pre> |
| <extension |
| point="org.eclipse.gmf.runtime.draw2d.ui.render.renderedImageFactory"> |
| <factory |
| class="org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.SVGImageType"> |
| </factory> |
| </extension> |
| </pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| For API information, see the classes and interfaces defined in the <tt>org.eclipse.gmf.runtime.draw2d.ui.render</tt> and <tt>org.eclipse.gmf.runtime.draw2d.ui.render.factory</tt> packages. |
| |
| <p> |
| Clients providing an extension to the renderedImageFactory extension point need to create classes that implement the following interfaces: |
| </p> |
| <p> |
| <tt>org.eclipse.gmf.runtime.draw2d.ui.render.RenderedImage</tt> |
| </p> |
| <p> |
| <tt>org.eclipse.gmf.runtime.draw2d.ui.render.factory.RenderedImageType</tt> |
| </p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| [Enter information about supplied implementation of this extension point.] |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2006 IBM Corporation and others.<br> |
| 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 |
| <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> |
| </documentation> |
| </annotation> |
| |
| </schema> |