Package org.eclipse.gef.print
Class PrintGraphicalViewerOperation
- java.lang.Object
-
- org.eclipse.draw2d.PrintOperation
-
- org.eclipse.draw2d.PrintFigureOperation
-
- org.eclipse.gef.print.PrintGraphicalViewerOperation
-
public class PrintGraphicalViewerOperation extends org.eclipse.draw2d.PrintFigureOperation
-
-
Constructor Summary
Constructors Constructor Description PrintGraphicalViewerOperation(Printer p, GraphicalViewer g)Constructor for PrintGraphicalViewerOperation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphicalViewergetViewer()Returns the viewer.protected voidpreparePrintSource()protected voidrestorePrintSource()voidsetViewer(GraphicalViewer viewer)Sets the viewer.-
Methods inherited from class org.eclipse.draw2d.PrintFigureOperation
getPrintMode, getPrintSource, printPages, setPrintMode, setPrintSource, setupPrinterGraphicsFor
-
-
-
-
Constructor Detail
-
PrintGraphicalViewerOperation
public PrintGraphicalViewerOperation(Printer p, GraphicalViewer g)
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 Detail
-
getViewer
public GraphicalViewer getViewer()
Returns the viewer.- Returns:
- GraphicalViewer
-
preparePrintSource
protected void preparePrintSource()
- Overrides:
preparePrintSourcein classorg.eclipse.draw2d.PrintFigureOperation- See Also:
PrintOperation.preparePrintSource()
-
restorePrintSource
protected void restorePrintSource()
- Overrides:
restorePrintSourcein classorg.eclipse.draw2d.PrintFigureOperation- See Also:
PrintOperation.restorePrintSource()
-
setViewer
public void setViewer(GraphicalViewer viewer)
Sets the viewer.- Parameters:
viewer- The viewer to set
-
-