com.tensegrity.gui.swt.graph
Class SwtImageExporter

java.lang.Object
  extended bycom.tensegrity.gui.swt.graph.SwtImageExporter
All Implemented Interfaces:
ImageExporter

public class SwtImageExporter
extends java.lang.Object
implements ImageExporter

SwtImageExporter is the SWT implementation of the ImageExporter.

Author:
BurkhardWick

Constructor Summary
SwtImageExporter(org.eclipse.swt.graphics.Device swtDevice)
          Constructor
 
Method Summary
 java.lang.Object exportImage(VisualGraphView vgv, ImageExportViewConfigurator ievc)
          This method renders the view to an image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtImageExporter

public SwtImageExporter(org.eclipse.swt.graphics.Device swtDevice)
Constructor

Parameters:
swtDevice - The SWT device
Method Detail

exportImage

public final java.lang.Object exportImage(VisualGraphView vgv,
                                          ImageExportViewConfigurator ievc)
Description copied from interface: ImageExporter
This method renders the view to an image.

Specified by:
exportImage in interface ImageExporter
Parameters:
vgv - The VisualGraphView to render.
ievc - An ImageExportViewConfigurator that is used to prepare the view for rendering and contains the configuration in form of a ImageExportConfiguration.
Returns:
An image object. The actual type of the return value depends on the toolkit implementation used.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.