|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.PrintOperation | +--org.eclipse.draw2d.PrintFigureOperation
Class responsible for printing Figures.
Constructor Summary | |
protected |
PrintFigureOperation(Printer p)
Constructor for PrintFigureOperation. |
|
PrintFigureOperation(Printer p,
IFigure srcFigure)
Constructor for PrintFigureOperation. |
Method Summary | |
protected IFigure |
getPrintSource()
Returns the printSource. |
protected void |
preparePrintSource()
This method contains all operations performed to sourceFigure prior to being printed. |
protected void |
printPages()
This method is responsible for printing pages. |
protected void |
restorePrintSource()
This method contains all operations performed to sourceFigure after being printed. |
protected void |
setPrintSource(IFigure printSource)
Sets the printSource. |
protected void |
setupPrinterGraphicsFor(Graphics g,
IFigure f)
Sets up Graphics object g for IFigure f. |
Methods inherited from class org.eclipse.draw2d.PrintOperation |
cleanup, getFreshPrinterGraphics, getPrinter, getPrintRegion, run, setPrinter, setPrintMargin, setupGraphicsForPage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected PrintFigureOperation(Printer p)
Note: Descendants must call setPrintSource(IFigure) to set the IFigure that is to be printed.
PrintOperation.PrintOperation(Printer)
public PrintFigureOperation(Printer p, IFigure srcFigure)
p
- Printer to print onsrcFigure
- Figure to printMethod Detail |
protected void preparePrintSource()
PrintOperation
preparePrintSource
in class PrintOperation
PrintOperation.preparePrintSource()
protected void restorePrintSource()
PrintOperation
restorePrintSource
in class PrintOperation
PrintOperation.restorePrintSource()
protected void printPages()
PrintOperation
printPages
in class PrintOperation
PrintOperation.printPages()
protected void setupPrinterGraphicsFor(Graphics g, IFigure f)
g
- The Graphics to setupf
- The IFigure used to setup gprotected IFigure getPrintSource()
protected void setPrintSource(IFigure printSource)
printSource
- The printSource to set
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |