JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
public final class PageRange
extends Object
A PageRange
is used to select or constrain the job print
stream pages to print.
Page numbering starts from 1 to correspond to user expectations.
The start page must be greater than zero and less than or
equal to the end page.
If start and end are equal, the range refers to a single page.
Values that exceed the number of job pages are harmlessly ignored
during printing.
Since:
JavaFX 8.0
Constructor Summary
Constructors
Constructor
Description
PageRange (int startPage,
int endPage)
Create a new PageRange with the specified start and end page numbers.
Method Summary
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Detail
PageRange
public PageRange(int startPage,
int endPage)
Create a new PageRange with the specified start and end page numbers.
Parameters:
startPage
- the first page in the range.
endPage
- the last page in the range.
Throws:
IllegalArgumentException
- if the page range is not valid
Method Detail
getEndPage
public int getEndPage()
Returns:
the ending page of the range.
JavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.