-
- All Implemented Interfaces:
-
com.harissk.pdfium.search.TextSearchContext
public abstract class FPDFTextSearchContext implements TextSearchContext
An abstract class representing the context for searching text within a PDF document.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanmHasNextprivate BooleanmHasPrevprivate final IntegercountResultprivate final BooleanhasNextprivate final BooleanhasPrevprivate final IntegerpageIndexprivate final Stringqueryprivate final BooleanisMatchCaseprivate final BooleanisMatchWholeWordprivate final RectFsearchNextprivate final RectFsearchPrev
-
Constructor Summary
Constructors Constructor Description FPDFTextSearchContext(Integer pageIndex, String query, Boolean isMatchCase, Boolean isMatchWholeWord)
-
Method Summary
Modifier and Type Method Description final BooleangetMHasNext()final UnitsetMHasNext(Boolean mHasNext)final BooleangetMHasPrev()final UnitsetMHasPrev(Boolean mHasPrev)IntegergetCountResult()The number of search results found. BooleangetHasNext()BooleangetHasPrev()IntegergetPageIndex()StringgetQuery()BooleangetIsMatchCase()BooleangetIsMatchWholeWord()abstract RectFgetSearchNext()The bounding rectangle of the next search result. abstract RectFgetSearchPrev()The bounding rectangle of the previous search result. UnitstartSearch()Starts a new search for the query within the specified page. UnitstopSearch()Stops the current search. -
-
Constructor Detail
-
FPDFTextSearchContext
FPDFTextSearchContext(Integer pageIndex, String query, Boolean isMatchCase, Boolean isMatchWholeWord)
- Parameters:
pageIndex- The index of the page to search.query- The search query string.isMatchCase- Whether to match the case of the query.isMatchWholeWord- Whether to match only whole words.
-
-
Method Detail
-
getMHasNext
final Boolean getMHasNext()
-
setMHasNext
final Unit setMHasNext(Boolean mHasNext)
-
getMHasPrev
final Boolean getMHasPrev()
-
setMHasPrev
final Unit setMHasPrev(Boolean mHasPrev)
-
getCountResult
Integer getCountResult()
The number of search results found.
-
getHasNext
Boolean getHasNext()
-
getHasPrev
Boolean getHasPrev()
-
getPageIndex
Integer getPageIndex()
-
getIsMatchCase
Boolean getIsMatchCase()
-
getIsMatchWholeWord
Boolean getIsMatchWholeWord()
-
getSearchNext
abstract RectF getSearchNext()
The bounding rectangle of the next search result.
-
getSearchPrev
abstract RectF getSearchPrev()
The bounding rectangle of the previous search result.
-
startSearch
Unit startSearch()
Starts a new search for the query within the specified page.
-
stopSearch
Unit stopSearch()
Stops the current search.
-
-
-
-