|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.fx.print.PrintOptions
This class holds options for the pages that are to be printed - but do not relate to the layout of the pages.
| Field Summary | |
static int |
EVEN_PAGES_ONLY
A possible value for whichPages |
static int |
NO_MORE_PAGES
A possible return value from getFirstPage() or getNextPage(). |
static int |
ODD_AND_EVEN_PAGES
The default value for whichPages |
static int |
ODD_PAGES_ONLY
A possible value for whichPages |
boolean |
printBackwards
This indicates that printing should be from the highest page to the lowest. |
static int |
TO_END_OF_DOCUMENT
This can be a lastPage value for addRange(). |
int |
whichPages
This defaults to ODD_AND_EVEN_PAGES, but can also be set to ODD_PAGES_ONLY and EVEN_PAGES_ONLY. |
| Constructor Summary | |
PrintOptions()
|
|
| Method Summary | |
void |
addRange(int firstPage,
int lastPage)
Add a range of pages to print. |
int |
countPagesWillPrint(int reportedNumberOfPages)
Count the number of pages that will print if reportedNumberOfPages is not UNKNOWN_NUMBER_OF_PAGES. |
Object |
getCopy()
Return a copy of this object. |
int |
getFirstPage(int reportedNumberOfPages)
Return the first page that should be printed. |
int |
getNextPage()
Return the next page that should be printed. |
RangeList |
getRanges()
Return the RangeList of pages to print. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
public boolean printBackwards
public int whichPages
public static final int ODD_AND_EVEN_PAGES
public static final int ODD_PAGES_ONLY
public static final int EVEN_PAGES_ONLY
public static final int TO_END_OF_DOCUMENT
public static final int NO_MORE_PAGES
| Constructor Detail |
public PrintOptions()
| Method Detail |
public Object getCopy()
Copyable
getCopy in interface Copyable
public void addRange(int firstPage,
int lastPage)
public RangeList getRanges()
public int getFirstPage(int reportedNumberOfPages)
throws IllegalStateException
reportedNumberOfPages - the number of pages the Printable object reported for the document.
IllegalStateException - if printBackwards is true but the reportedNumberOfPages is unknown.public int getNextPage()
public int countPagesWillPrint(int reportedNumberOfPages)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||