java.lang.Object
javafx.print.PageRange
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 endpage.
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
-
Property Summary
TypePropertyDescriptionfinal ReadOnlyIntegerProperty
IntegerProperty
representing the ending page number of the range.final ReadOnlyIntegerProperty
IntegerProperty
representing the starting page number of the range. -
Constructor Summary
ConstructorDescriptionPageRange
(int startPage, int endPage) Create a new PageRange with the specified start and end page numbers. -
Method Summary
Modifier and TypeMethodDescriptionfinal ReadOnlyIntegerProperty
IntegerProperty
representing the ending page number of the range.final int
Gets the value of theendPage
property.final int
Gets the value of thestartPage
property.final ReadOnlyIntegerProperty
IntegerProperty
representing the starting page number of the range.
-
Property Details
-
startPage
IntegerProperty
representing the starting page number of the range.- See Also:
-
endPage
IntegerProperty
representing the ending page number of the range.- See Also:
-
-
Constructor Details
-
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 Details
-
startPageProperty
IntegerProperty
representing the starting page number of the range.- Returns:
- the starting page number of the range
- See Also:
-
getStartPage
public final int getStartPage()Gets the value of thestartPage
property.- Property description:
IntegerProperty
representing the starting page number of the range.- Returns:
- the value of the
startPage
property - See Also:
-
endPageProperty
IntegerProperty
representing the ending page number of the range.- Returns:
- the ending page number of the range
- See Also:
-
getEndPage
public final int getEndPage()Gets the value of theendPage
property.- Property description:
IntegerProperty
representing the ending page number of the range.- Returns:
- the value of the
endPage
property - See Also:
-