Eclipse GEF
3.0

org.eclipse.gef.print
Class PrintGraphicalViewerOperation

java.lang.Object
  extended byPrintFigureOperation
      extended byorg.eclipse.gef.print.PrintGraphicalViewerOperation

public class PrintGraphicalViewerOperation
extends PrintFigureOperation

See Also:
Serialized Form

Constructor Summary
PrintGraphicalViewerOperation(Printer p, GraphicalViewer g)
          Constructor for PrintGraphicalViewerOperation
 
Method Summary
 GraphicalViewer getViewer()
          Returns the viewer.
protected  void preparePrintSource()
           
protected  void restorePrintSource()
           
 void setViewer(GraphicalViewer viewer)
          Sets the viewer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintGraphicalViewerOperation

public PrintGraphicalViewerOperation(Printer p,
                                     GraphicalViewer g)
Constructor 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 Layer with the PRINTABLE_LAYERS key.
Method Detail

getViewer

public GraphicalViewer getViewer()
Returns the viewer.

Returns:
GraphicalViewer

preparePrintSource

protected void preparePrintSource()
See Also:
PrintOperation

restorePrintSource

protected void restorePrintSource()
See Also:
PrintOperation

setViewer

public void setViewer(GraphicalViewer viewer)
Sets the viewer.

Parameters:
viewer - The viewer to set

Eclipse GEF
3.0

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.