|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.fx.print.PageCounter
You would only use this if you are inheriting from PrinterJobObject. It is used to iterate through pages that are to be printed.
| Field Summary | |
int |
currentPageIndex
This is only valid after calls to moveToNextPage(). |
int |
pagesInDocument
This is the total number of pages in the document as reported by Printable.countPages() |
int |
pagesToPrint
This is the total number of pages that will be printed using the provided PrinterOptions object. |
| Constructor Summary | |
PageCounter(Handle handle,
Printable printable,
PageFormat pageFormat,
PrintOptions options)
|
|
| Method Summary | |
boolean |
moveToNextPage()
Call this to move to the next page. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
public int pagesInDocument
public int pagesToPrint
public int currentPageIndex
| Constructor Detail |
public PageCounter(Handle handle,
Printable printable,
PageFormat pageFormat,
PrintOptions options)
| Method Detail |
public boolean moveToNextPage()
throws IllegalStateException
IllegalStateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||