|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramGenerator
org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramImageGenerator
Supports generation of AWT and SWT images of a diagram or a subset of editparts on a diagram.
| Constructor Summary | |
DiagramImageGenerator(DiagramEditPart dgrmEP)
Creates a new instance. |
|
| Method Summary | |
java.awt.Image |
createAWTImageForParts(java.util.List selectedObjects)
Creates an AWT image for the list of editparts passed in. |
protected void |
disposeGraphics(Graphics g)
Allows hook to dispose of any artifacts around the creation of the Graphics object used for rendering. |
protected ImageDescriptor |
getImageDescriptor(Graphics g)
Creates an image descriptor representing the image rendered from the diagram. |
protected Graphics |
setUpGraphics(int width,
int height)
Allows hook for the creation of a Graphics object that is
used for the rendering of the diagram. |
| Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramGenerator |
calculateImageRectangle, createAWTImageForDiagram, createSWTImageDescriptorForDiagram, createSWTImageDescriptorForParts, getDiagramEditPart, getDiagramPartInfo, getImageMargin, getMapMode, renderToGraphics |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DiagramImageGenerator(DiagramEditPart dgrmEP)
dgrmEP - the diagram editpart| Method Detail |
protected Graphics setUpGraphics(int width,
int height)
DiagramGeneratorGraphics object that is
used for the rendering of the diagram.
setUpGraphics in class DiagramGeneratorwidth - of the clipping areaheight - of the clipping area
protected void disposeGraphics(Graphics g)
DiagramGeneratorGraphics object used for rendering.
disposeGraphics in class DiagramGeneratorg - Graphics element that is to be disposed.protected ImageDescriptor getImageDescriptor(Graphics g)
DiagramGenerator
getImageDescriptor in class DiagramGeneratorg - Graphics object where information to form the image descriptor
can be retrieved from.
public java.awt.Image createAWTImageForParts(java.util.List selectedObjects)
DiagramGenerator
createAWTImageForParts in class DiagramGeneratorselectedObjects - the list of IGraphicalEditParts that will be
rendered to the Image
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.