public interface PrintInvoker
Modifier and Type | Method and Description |
---|---|
boolean |
printingPage(GadgetPrinter printer,
int pageIndex,
int pageCount)
Invoked by GadgetPrinter to notify this client object that it is
starting to print a new page.
|
boolean printingPage(GadgetPrinter printer, int pageIndex, int pageCount)
This method is also called with pageIndex==-1
before
printing first page and with pageIndex==pageCount
after
printing last page.
printer
- GadgetPrinter which is invoking this methodpageIndex
- index of current page; first page is page #0pageCount
- total number of pages being printedtrue
if this client object wishes to cancel
printing, in which case a PrintCanceledException
is thrown;
returns false
otherwise