public class PrintGraphicalViewerOperation extends PrintFigureOperation
FIT_HEIGHT, FIT_PAGE, FIT_WIDTH, TILE| Constructor and Description |
|---|
PrintGraphicalViewerOperation(Printer p,
GraphicalViewer g)
Constructor for PrintGraphicalViewerOperation
|
| Modifier and Type | Method and Description |
|---|---|
GraphicalViewer |
getViewer()
Returns the viewer.
|
protected void |
preparePrintSource() |
protected void |
restorePrintSource() |
void |
setViewer(GraphicalViewer viewer)
Sets the viewer.
|
getPrintMode, getPrintSource, printPages, setPrintMode, setPrintSource, setupPrinterGraphicsForcleanup, getFreshPrinterGraphics, getPrinter, getPrintRegion, run, setPrinter, setPrintMargin, setupGraphicsForPagepublic PrintGraphicalViewerOperation(Printer p, GraphicalViewer g)
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.public GraphicalViewer getViewer()
protected void preparePrintSource()
preparePrintSource in class PrintFigureOperationPrintOperation.preparePrintSource()protected void restorePrintSource()
restorePrintSource in class PrintFigureOperationPrintOperation.restorePrintSource()public void setViewer(GraphicalViewer viewer)
viewer - The viewer to setCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.