Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy





Class DiagramPrinterUtil

  extended by 

public class DiagramPrinterUtil
extends java.lang.Object

Utility for using the DiagramPrinter to print diagrams after displaying a print dialog box to the user. Diagrams are printed using the DiagramPrinter and respect the settings chosen by the user in the print dialog. This class now delegates its functionality to helpers that isolate out the printing via SWT printing.

Constructor Summary
DiagramPrinterUtil ()
Method Summary
static void printWithSettings ( IEditorPart editorPart, java.util.Map diagramMap, org.eclipse.gmf.runtime.diagram.ui.printing.internal.util.SWTDiagramPrinter diagramPrinter)
          Opens up the print diagrams dialog, allows the user to choose the settings, and prints.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DiagramPrinterUtil()
Method Detail


public static void printWithSettings(
IEditorPart editorPart,
                                     java.util.Map diagramMap,
                                     org.eclipse.gmf.runtime.diagram.ui.printing.internal.util.SWTDiagramPrinter diagramPrinter)
Opens up the print diagrams dialog, allows the user to choose the settings, and prints.

editorPart - current editor part
diagramMap - map of String names to Diagram objects. Should be initialized by caller of this method. String names will show up in the print dialog that allows the user to choose which diagrams to print from a list.
diagramPrinter - the diagram printer that does the work of actually printing the diagrams


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire