com.tensegrity.gui.swt.print
Class PrintPreviewDialog

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

public class PrintPreviewDialog
extends java.lang.Object

The PrintPreviewDialog previews a VisualGraphView as it will get printed.

Version:
$Id: PrintPreviewDialog.java,v 1.1 2005/05/20 07:06:00 ArndHouben Exp $
Author:
Arnd Houben

Constructor Summary
PrintPreviewDialog(org.eclipse.swt.widgets.Display dpl, ApplicationFrame appFrame, VisualGraphView vgView)
          Constructs a new PrintPreviewDialog instance
 
Method Summary
 BasePageFormat getPageFormat()
          The method getPageFormat returns the currently used page format instance of the currently or recently displayed Book.
 void open()
          Opens the dialog, i.e. the dialog gets visible and to front.
 void setPageFormat(BasePageFormat bpf)
          Sets the used page format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintPreviewDialog

public PrintPreviewDialog(org.eclipse.swt.widgets.Display dpl,
                          ApplicationFrame appFrame,
                          VisualGraphView vgView)
Constructs a new PrintPreviewDialog instance

Parameters:
dpl - the parent display, used to align this dialog
appFrame - reference to currently used application frame
vgView - the VisualGraphView to preview
Method Detail

open

public final void open()
Opens the dialog, i.e. the dialog gets visible and to front. This blocks until the dialog is closed


getPageFormat

public BasePageFormat getPageFormat()
The method getPageFormat returns the currently used page format instance of the currently or recently displayed Book.

Returns:
the CustomPageFormat instance from page one. Assuming each page uses the same PageFormat instance.

setPageFormat

public void setPageFormat(BasePageFormat bpf)
Sets the used page format

Parameters:
bpf - the new BasePageFormat to use


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