Rendered Image Factory

org.eclipse.gmf.runtime.draw2d.ui.render.renderedImageFactory

GMF 1.0

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.

<!ELEMENT extension (factory)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT factory EMPTY>

<!ATTLIST factory

class CDATA #REQUIRED>


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>

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

[Enter information about supplied implementation of this extension point.]