Search Result Highlighter
PdfDrawableProvider creating highlights based on a list of SearchResult instances.
Functions
Adds the given results to the set of previously added results. In contrast to setSearchResults a call to this will not clear previously set results. Also any previously selected search result will not be cleared.
Clears all previously selected search results.
Returns padding of the highlighted search result used when pop-out animating the currently selected search result. This defaults to R.dimen.pspdf__search_result_animation_padding.
Returns padding of the highlighted search result used when highlighting annotations. This defaults to R.dimen.pspdf__search_result_annotation_padding.
Returns color of the highlighted search result. This defaults to R.color.pspdf__color_highlight.
Returns border color of the highlighted search result. This defaults to R.color.pspdf__border_color_highlight.
Returns border width of the highlighted search result. This defaults to R.dimen.pspdf__search_result_border_width.
Returns ratio between corner radius of the search result rectangle and its height. This defaults to 0.1f.
Returns maximal corner radius of the highlighted search result. This defaults to R.dimen.pspdf__search_result_max_corner_radius.
Returns minimal corner radius of the highlighted search result. This defaults to R.dimen.pspdf__search_result_min_corner_radius.
Returns padding of the the highlighted search result used when highlighting document text. This defaults to R.dimen.pspdf__search_result_padding.
Sets padding of the highlighted search result used when pop-out animating the currently selected search result. Once you've set this property, you need to call getDrawablesForPage in order to get search highlight drawables with latest properties applied.
Sets padding of the highlighted search result used when highlighting annotations. Once you've set this property, you need to call getDrawablesForPage in order to get search highlight drawables with latest properties applied.
Sets color of the highlighted search result. Once you've set this property, you need to call getDrawablesForPage in order to get search highlight drawables with latest properties applied.
Sets border color of the highlighted search result. Once you've set this property, you need to call getDrawablesForPage in order to get search highlight drawables with latest properties applied.
Sets border width of the highlighted search result. Once you've set this property, you need to call getDrawablesForPage in order to get search highlight drawables with latest properties applied.
Sets ratio between corner radius of the search result rectangle and its height. Once you've set this property, you need to call getDrawablesForPage in order to get search highlight drawables with latest properties applied.
Sets maximal corner radius of the highlighted search result. Once you've set this property, you need to call getDrawablesForPage in order to get search highlight drawables with latest properties applied.
Sets minimal corner radius of the highlighted search result. Once you've set this property, you need to call getDrawablesForPage in order to get search highlight drawables with latest properties applied.
Sets padding of the the highlighted search result used when highlighting document text. Once you've set this property, you need to call getDrawablesForPage in order to get search highlight drawables with latest properties applied.
Sets new search results. Calling this will replace any previously set search results and also clear the currently selected search result.
Marks a single search results as selected, deselecting any previously selected search result. Callers must ensure that the selected search results has been set previously using setSearchResults or an exception will be thrown.