|
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.DiagramSVGGenerator
Supports generation of an SVG DOM for a diagram or a subset of editparts on a diagram.
| Constructor Summary | |
DiagramSVGGenerator(DiagramEditPart diagramEditPart)
Creates a new instance. |
|
| Method Summary | |
java.awt.Image |
createAWTImageForParts(java.util.List editparts)
Creates an AWT image for the list of editparts passed in. |
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. |
void |
stream(java.io.OutputStream outputStream)
Writes the SVG Model out to a file. |
| Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramGenerator |
calculateImageRectangle, createAWTImageForDiagram, createSWTImageDescriptorForDiagram, createSWTImageDescriptorForParts, disposeGraphics, 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 DiagramSVGGenerator(DiagramEditPart diagramEditPart)
diagramEditPart - 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 ImageDescriptor getImageDescriptor(Graphics g)
DiagramGenerator
getImageDescriptor in class DiagramGeneratorg - Graphics object where information to form the image descriptor
can be retrieved from.
public void stream(java.io.OutputStream outputStream)
outputStream - output stream to store the SVG Modelpublic java.awt.Image createAWTImageForParts(java.util.List editparts)
DiagramGenerator
createAWTImageForParts in class DiagramGeneratoreditparts - 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.