Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GMF Guide
Previous Page Home Next Page

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

>

  • class -

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>
 

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 https://www.eclipse.org/legal/epl-v10.html


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire