Class PageIterator.PageNumberer.InnerPageNumber

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int pageNumber  
    • Constructor Summary

      Constructors 
      Constructor Description
      InnerPageNumber()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPageCount()
      Returns the total number of pages.
      int getPageNumber()
      Returns the zero-based page index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pageNumber

        final int pageNumber
    • Constructor Detail

      • InnerPageNumber

        InnerPageNumber()
    • Method Detail

      • getPageCount

        public int getPageCount()
        Description copied from interface: PageNumber
        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 inside PageDecoration.createPrint(PageNumber).
        Specified by:
        getPageCount in interface PageNumber
        Returns:
        the total number of pages.
      • getPageNumber

        public int getPageNumber()
        Description copied from interface: PageNumber
        Returns the zero-based page index.
        Specified by:
        getPageNumber in interface PageNumber
        Returns:
        the zero-based page index.