org.pdfsam.console.business.pdf.bookmarks
Class BookmarksProcessor

java.lang.Object
  extended by org.pdfsam.console.business.pdf.bookmarks.BookmarksProcessor

public class BookmarksProcessor
extends java.lang.Object

Helper class used to process bookmarks

Author:
Andrea Vacondio

Constructor Summary
BookmarksProcessor(java.util.List bookmarks, int numberOfPages)
           
 
Method Summary
 java.util.List processBookmarks(int startPage, int endPage)
          Process the bookmarks returning a view of the whole list that contains only pages comprehended among the two limits (included) with page number shifted if necessary.
 java.util.List processBookmarks(int startPage, int endPage, int pageOffset)
          Process the bookmarks returning a view of the whole list that contains only pages comprehended among the two limits (included) with page number shifted if necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarksProcessor

public BookmarksProcessor(java.util.List bookmarks,
                          int numberOfPages)
Parameters:
bookmarks -
numberOfPages -
Method Detail

processBookmarks

public java.util.List processBookmarks(int startPage,
                                       int endPage,
                                       int pageOffset)
Process the bookmarks returning a view of the whole list that contains only pages comprehended among the two limits (included) with page number shifted if necessary.

Parameters:
startPage - start page number
endPage - end page number
pageOffset - if not 0 pages are shifted of the given amount
Returns:

processBookmarks

public java.util.List processBookmarks(int startPage,
                                       int endPage)
Process the bookmarks returning a view of the whole list that contains only pages comprehended among the two limits (included) with page number shifted if necessary.

Parameters:
startPage - start page number
endPage - end page number
Returns:
See Also:
processBookmarks(int, int, int)