Rendered Image Factory
Identifier:
org.eclipse.gmf.runtime.draw2d.ui.render.renderedImageFactory
Since:
GMF 1.0
Description:
This extension point is used to define an image type to allow auto detection of an image buffer. The image type can instantiate an (RenderedImage) which can subsequently be rendered using the (ScalableImageFigure) class.
In the extension point, the client points to a factory class which they create implementing the (RenderedImageType) interface. The (RenderedImageFactory) static class calls the extension point to compile a list of image types to query. When the client calls the (RenderedImageFactory) to retrieve the proper (RenderedImage), 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 (RenderedImage) object.
Configuration Markup:
<!ELEMENT extension (factory)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT factory EMPTY>
<!ATTLIST factory
class CDATA #REQUIRED>
Examples:
An extension to the renderedImageFactory would require the implementation of the (RenderedImageType) interface.
The following is an example plugin.xml entry for a renderedImageFactory extension:
<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>
API Information:
For API information, see the classes and interfaces defined in the org.eclipse.gmf.runtime.draw2d.ui.render and org.eclipse.gmf.runtime.draw2d.ui.render.factory packages.
Clients providing an extension to the renderedImageFactory extension point need to create classes that implement the following interfaces:
org.eclipse.gmf.runtime.draw2d.ui.render.RenderedImage
org.eclipse.gmf.runtime.draw2d.ui.render.factory.RenderedImageType
Supplied Implementation:
[Enter information about supplied implementation of this extension point.]
Copyright (c) 2006 IBM Corporation and others.
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