Interface PageNumber
-
- All Known Implementing Classes:
PageIterator.PageNumberer.InnerPageNumber
public interface PageNumberInstances of this class represent a page index in the output of a PagePrint.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetPageCount()Returns the total number of pages.intgetPageNumber()Returns the zero-based page index.
-
-
-
Method Detail
-
getPageNumber
int getPageNumber()
Returns the zero-based page index.- Returns:
- the zero-based page index.
-
getPageCount
int getPageCount()
Returns the total number of pages. Note that this method may not return an accurate value until all pages have been laid out. Therefore this method should not be used insidePageDecoration.createPrint(PageNumber).- Returns:
- the total number of pages.
-
-