Class SearchEngine
java.lang.Object
org.apache.pdfbox.debugger.ui.textsearcher.SearchEngine
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Document
private final Highlighter
private static final org.apache.commons.logging.Log
private final Highlighter.HighlightPainter
-
Constructor Summary
ConstructorsConstructorDescriptionSearchEngine
(JTextComponent textComponent, Highlighter.HighlightPainter painter) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionSearch the word.
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
document
-
highlighter
-
painter
-
-
Constructor Details
-
SearchEngine
SearchEngine(JTextComponent textComponent, Highlighter.HighlightPainter painter) Constructor.- Parameters:
textComponent
- JTextComponent that is to be searched.painter
- Highlighter.HighlightPainter instance to paint the highlights.
-
-
Method Details
-
search
Search the word.- Parameters:
searchKey
- String. Search word.isCaseSensitive
- boolean. If search is case sensitive.- Returns:
- ArrayList<Highlighter.Highlight>.
-