Package org.eclipse.gef.print
Class PrintGraphicalViewerOperation
java.lang.Object
org.eclipse.draw2d.PrintOperation
org.eclipse.draw2d.PrintFigureOperation
org.eclipse.gef.print.PrintGraphicalViewerOperation
-
Field Summary
Fields inherited from class org.eclipse.draw2d.PrintFigureOperation
FIT_HEIGHT, FIT_PAGE, FIT_WIDTH, TILE -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for PrintGraphicalViewerOperation -
Method Summary
Modifier and TypeMethodDescriptionReturns the viewer.protected voidprotected voidvoidsetViewer(GraphicalViewer viewer) Sets the viewer.Methods inherited from class org.eclipse.draw2d.PrintFigureOperation
getPrintMode, getPrintSource, printPages, setPrintMode, setPrintSource, setupPrinterGraphicsForMethods inherited from class org.eclipse.draw2d.PrintOperation
cleanup, createGraphics, getFreshGraphics, getFreshPrinterGraphics, getPrinter, getPrintRegion, run, setPrinter, setPrintMargin, setupGraphicsForPage, setupGraphicsForPage
-
Constructor Details
-
PrintGraphicalViewerOperation
Constructor for PrintGraphicalViewerOperation- Parameters:
p- The Printer to print tog- The viewer containing what is to be printed NOTE: The GraphicalViewer to be printed must have aLayerwith thePRINTABLE_LAYERSkey.
-
-
Method Details
-
getViewer
Returns the viewer.- Returns:
- GraphicalViewer
-
preparePrintSource
protected void preparePrintSource()- Overrides:
preparePrintSourcein classPrintFigureOperation- See Also:
-
restorePrintSource
protected void restorePrintSource()- Overrides:
restorePrintSourcein classPrintFigureOperation- See Also:
-
setViewer
Sets the viewer.- Parameters:
viewer- The viewer to set
-