com.tensegrity.gui.swing.graph
Class SwingImageExporter

java.lang.Object
  extended bycom.tensegrity.gui.swing.graph.SwingImageExporter
All Implemented Interfaces:
ImageExporter

public class SwingImageExporter
extends java.lang.Object
implements ImageExporter

SwingImageExporter is the Swing implementation of the ImageExporter.

The Object returned by exportImage(VisualGraphView, ImageExportViewConfigurator) ia of type java.awt.image.BufferedImage

Author:
BurkhardWick

Constructor Summary
SwingImageExporter()
           
 
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

SwingImageExporter

public SwingImageExporter()
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.