public interface ITextSearcher
| Modifier and Type | Method and Description |
|---|---|
void |
cancelSearch()
Stop searching
|
int |
getCurrentPageIndex()
Gets the currently searching page index.
|
java.util.ArrayList<android.graphics.RectF> |
getSelectedSelections()
Gets the position of keyword in focus state.
|
java.util.ArrayList<android.graphics.RectF> |
getSelections(int pageIndex)
Gets the position of all keywords in specify page index.
|
boolean |
isIgnoreCase()
Whether to ignore the capitalization when searching.
|
boolean |
isMatchWholeWord()
Whether to match the whole word when searching.
|
void |
searchBackward()
Search backward
|
void |
searchBegin(int pageIndex,
int textRangeIndex)
Sets searcher to start searching from the
textRangeIndex keyword inpageIndex page |
void |
searchForward()
Search forward
|
java.util.ArrayList<CPDFTextRange> |
searchKeyword(int pageIndex)
Search keyword in
pageIndex page, get information of all keywords position ,more: CPDFTextRange |
void |
setIgnoreCase(boolean ignore)
Set whether to ignore the capitalization when searching.
|
void |
setMatchWholeWord(boolean matchWhole)
Set whether to match the whole word when searching.
|
void |
setSearchConfig(java.lang.String keyword,
int searchMode)
Sets the keyword and search mode of searcher.
|
java.util.ArrayList<android.graphics.RectF> getSelections(int pageIndex)
A keyword may correspond to multiple rectangles, because if a keyword wraps, there will be multiple rectangles corresponding to a keyword.
pageIndex - Page index.java.util.ArrayList<android.graphics.RectF> getSelectedSelections()
A keyword may correspond to multiple rectangles, because if a keyword wraps, there will be multiple rectangles corresponding to a keyword.
void setSearchConfig(java.lang.String keyword,
int searchMode)
keyword - keyword.searchMode - Search mode, more: CPDFTextSearcher.PDFSearchOptionsvoid setIgnoreCase(boolean ignore)
ignore - Whether to ignore the capitalization.void setMatchWholeWord(boolean matchWhole)
matchWhole - Whether to match the whole word.boolean isIgnoreCase()
boolean isMatchWholeWord()
void searchBegin(int pageIndex,
int textRangeIndex)
textRangeIndex keyword inpageIndex pagepageIndex - The starting page index.textRangeIndex - The starting keyword indexint getCurrentPageIndex()
java.util.ArrayList<CPDFTextRange> searchKeyword(int pageIndex)
pageIndex page, get information of all keywords position ,more: CPDFTextRangepageIndex - Page index.pageIndex pagevoid searchForward()
void searchBackward()
void cancelSearch()