javafx.print
Class PageRange
- javafx.print.PageRange
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 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
All MethodsInstance MethodsConcrete Methods Type Property and Description ReadOnlyIntegerPropertyendPageIntegerPropertyrepresenting the ending page number of the range.ReadOnlyIntegerPropertystartPageIntegerPropertyrepresenting the starting page number of the range.
-
Constructor Summary
Constructors Constructor and Description PageRange(int startPage, int endPage)Create a new PageRange with the specified start and end page numbers.
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and Description ReadOnlyIntegerPropertyendPageProperty()IntegerPropertyrepresenting the ending page number of the range.intgetEndPage()intgetStartPage()ReadOnlyIntegerPropertystartPageProperty()IntegerPropertyrepresenting the starting page number of the range.
-
Property Detail
-
startPage
public ReadOnlyIntegerProperty startPageProperty
IntegerPropertyrepresenting the starting page number of the range. SeegetStartPage()for more information.See Also:
-
endPage
public ReadOnlyIntegerProperty endPageProperty
IntegerPropertyrepresenting the ending page number of the range. SeegetEndPage()for more information.See Also:
-
-
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.Throws:
IllegalArgumentException- if the page range is not valid
-
-
Method Detail
-
startPageProperty
public ReadOnlyIntegerProperty startPageProperty()
IntegerPropertyrepresenting the starting page number of the range. SeegetStartPage()for more information.See Also:
-
getStartPage
public int getStartPage()
Returns:
the starting page of the range.
-
endPageProperty
public ReadOnlyIntegerProperty endPageProperty()
IntegerPropertyrepresenting the ending page number of the range. SeegetEndPage()for more information.See Also:
-
getEndPage
public int getEndPage()
Returns:
the ending page of the range.
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.