com.tensegrity.gui.swt.print
Class PrintManager

java.lang.Object
  extended bycom.tensegrity.gui.swt.print.PrintManager

public class PrintManager
extends java.lang.Object

The PrintManager class encapsulates the complete printing process. This is useful since the print functionality is required from different places, e.g. print preview, page setup or directly from the application frame.

Version:
$Id: PrintManager.java,v 1.8 2005/11/16 16:02:25 ArndHouben Exp $
Author:
Arnd Houben

Constructor Summary
PrintManager(org.eclipse.swt.widgets.Composite parent)
          Creates a new PrintManager instance for the given parent.
PrintManager(org.eclipse.swt.widgets.Shell parentShell)
          Creates a new PrintManager instance for the given Shell
 
Method Summary
 void print(VisualGraphView vgView, BasePageFormat bpf)
          Prints the given visual graph view to the composite specified in the constructor, using the given page format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintManager

public PrintManager(org.eclipse.swt.widgets.Composite parent)
Creates a new PrintManager instance for the given parent.

Parameters:
parent - the parent composite for the used PrintDialog

PrintManager

public PrintManager(org.eclipse.swt.widgets.Shell parentShell)
Creates a new PrintManager instance for the given Shell

Parameters:
parentShell - the parent shell for the used PrintDialog
Method Detail

print

public final void print(VisualGraphView vgView,
                        BasePageFormat bpf)
Prints the given visual graph view to the composite specified in the constructor, using the given page format.

Parameters:
vgView - the visual graph view to print
bpf - the page format used for printing


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