public final class HighlightedLine extends HighlightedText
HighlightedLine object represents a line of text that
has a HighlightStyle applied to it. It is created by calling
addLineHighlight() in a highlight
layer on a region of text.
When trying to change the highlight style or offsets for a
HighlightedText object, the change must be done
through the highlight layer so that the editor view can be
properly repainted. Clients are not allowed to call the set*()
accessor methods here directly.
endMark, highlightStyle, startMark| Modifier | Constructor and Description |
|---|---|
protected |
HighlightedLine(HighlightStyle highlightStyle,
OffsetMark startMark,
OffsetMark endMark)
Constructs a new HighlightedLine object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLineHighlight()
Fetch whether this highlight is a line highlight or not.
|
getEndOffset, getHighlightStyle, getStartOffsetprotected HighlightedLine(HighlightStyle highlightStyle, OffsetMark startMark, OffsetMark endMark)
highlightStyle - the highlightStyle to usestartOffset - starting offsetendOffset - ending offset (exclusive)public boolean isLineHighlight()
isLineHighlight in class HighlightedText