Class BookmarksImpl

  • All Implemented Interfaces:
    Bookmarks

    public class BookmarksImpl
    extends java.lang.Object
    implements Bookmarks
    Implementation of user-friendly interface for document bookmarks
    • Constructor Detail

    • Method Detail

      • getBookmark

        public Bookmark getBookmark​(int index)
        Specified by:
        getBookmark in interface Bookmarks
        Parameters:
        index - bookmark document index
        Returns:
        Bookmark with specified index
      • getBookmarksAt

        public java.util.List<Bookmark> getBookmarksAt​(int startCp)
      • getBookmarksStartedBetween

        public java.util.Map<java.lang.Integer,​java.util.List<Bookmark>> getBookmarksStartedBetween​(int startInclusive,
                                                                                                          int endExclusive)
        Specified by:
        getBookmarksStartedBetween in interface Bookmarks
        Returns:
        Map of bookmarks started in specified range, where key is start position and value is sorted List of Bookmark
      • remove

        public void remove​(int index)
        Description copied from interface: Bookmarks
        Remove bookmark from document (but not the bookmark text)
        Specified by:
        remove in interface Bookmarks
        Parameters:
        index - bookmark document index to be removed