@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface AuthorHighlighter
Modifier and Type | Method and Description |
---|---|
Highlight |
addHighlight(int startOffset,
int endOffset,
HighlightPainter painter,
java.lang.Object additionalData)
Adds a highlight to the view.
|
Highlight[] |
findNonPersistentHighlights(int startOffset,
int endOffset)
Find all non-persistent highlights that intersect a range of content.
|
Highlight[] |
getHighlights()
Fetches the current list of highlights.
|
void |
removeAllHighlights()
Removes all highlights this highlighter is responsible for.
|
void |
removeHighlight(Highlight highlight)
Removes a highlight from the view.
|
Highlight addHighlight(int startOffset, int endOffset, HighlightPainter painter, java.lang.Object additionalData) throws javax.swing.text.BadLocationException
startOffset
- the beginning of the range >= 0endOffset
- the inclusive end of the range >= startOffsetpainter
- the painter to use for the actual highlightingadditionalData
- The additional data which can be stored in the highlight. May be null.javax.swing.text.BadLocationException
- for an invalid range specificationvoid removeHighlight(Highlight highlight)
highlight
- which highlight to removevoid removeAllHighlights()
Highlight[] getHighlights()
Highlight[] findNonPersistentHighlights(int startOffset, int endOffset)
startOffset
- The start offset of the range.endOffset
- The end offset of the range.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.