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 SummaryPropertiesTypePropertyDescriptionfinal ReadOnlyIntegerPropertyIntegerPropertyrepresenting the ending page number of the range.final ReadOnlyIntegerPropertyIntegerPropertyrepresenting the starting page number of the range.
- 
Constructor SummaryConstructorsConstructorDescriptionPageRange(int startPage, int endPage) Create a new PageRange with the specified start and end page numbers.
- 
Method SummaryModifier and TypeMethodDescriptionfinal ReadOnlyIntegerPropertyIntegerPropertyrepresenting the ending page number of the range.final intGets the value of theendPageproperty.final intGets the value of thestartPageproperty.final ReadOnlyIntegerPropertyIntegerPropertyrepresenting the starting page number of the range.
- 
Property Details- 
startPageIntegerPropertyrepresenting the starting page number of the range.- See Also:
 
- 
endPageIntegerPropertyrepresenting the ending page number of the range.- See Also:
 
 
- 
- 
Constructor Details- 
PageRangepublic 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- 
startPagePropertyIntegerPropertyrepresenting the starting page number of the range.- Returns:
- the starting page number of the range
- See Also:
 
- 
getStartPagepublic final int getStartPage()Gets the value of thestartPageproperty.- Property description:
- IntegerPropertyrepresenting the starting page number of the range.
- Returns:
- the value of the startPageproperty
- See Also:
 
- 
endPagePropertyIntegerPropertyrepresenting the ending page number of the range.- Returns:
- the ending page number of the range
- See Also:
 
- 
getEndPagepublic final int getEndPage()Gets the value of theendPageproperty.- Property description:
- IntegerPropertyrepresenting the ending page number of the range.
- Returns:
- the value of the endPageproperty
- See Also:
 
 
-