Package org.eclipse.gef.print
Class PrintGraphicalViewerOperation
java.lang.Object
org.eclipse.draw2d.PrintOperation
org.eclipse.draw2d.PrintFigureOperation
org.eclipse.gef.print.PrintGraphicalViewerOperation
- 
Field SummaryFields inherited from class org.eclipse.draw2d.PrintFigureOperationFIT_HEIGHT, FIT_PAGE, FIT_WIDTH, TILE
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor for PrintGraphicalViewerOperation
- 
Method SummaryModifier and TypeMethodDescriptionReturns the viewer.protected voidprotected voidvoidsetViewer(GraphicalViewer viewer) Sets the viewer.Methods inherited from class org.eclipse.draw2d.PrintFigureOperationgetPrintMode, getPrintSource, printPages, setPrintMode, setPrintSource, setupPrinterGraphicsForMethods inherited from class org.eclipse.draw2d.PrintOperationcleanup, createGraphics, getFreshGraphics, getFreshPrinterGraphics, getPrinter, getPrintRegion, run, setPrinter, setPrintMargin, setupGraphicsForPage, setupGraphicsForPage
- 
Constructor Details- 
PrintGraphicalViewerOperationConstructor for PrintGraphicalViewerOperation- Parameters:
- p- The Printer to print to
- g- The viewer containing what is to be printed NOTE: The GraphicalViewer to be printed must have a- Layerwith the- PRINTABLE_LAYERSkey.
 
 
- 
- 
Method Details- 
getViewerReturns the viewer.- Returns:
- GraphicalViewer
 
- 
preparePrintSourceprotected void preparePrintSource()- Overrides:
- preparePrintSourcein class- PrintFigureOperation
- See Also:
 
- 
restorePrintSourceprotected void restorePrintSource()- Overrides:
- restorePrintSourcein class- PrintFigureOperation
- See Also:
 
- 
setViewerSets the viewer.- Parameters:
- viewer- The viewer to set
 
 
-