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 PrintFigureOperation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 a
Layer
with the PRINTABLE_LAYERS
key.
getViewer
public GraphicalViewer getViewer()
- Returns the viewer.
- Returns:
- GraphicalViewer
preparePrintSource
protected void preparePrintSource()
- Overrides:
preparePrintSource
in class PrintFigureOperation
- See Also:
PrintOperation.preparePrintSource()
restorePrintSource
protected void restorePrintSource()
- Overrides:
restorePrintSource
in class PrintFigureOperation
- See Also:
PrintOperation.restorePrintSource()
setViewer
public void setViewer(GraphicalViewer viewer)
- Sets the viewer.
- Parameters:
viewer
- The viewer to set
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.