Package | Description |
---|---|
oracle.javatools.editor.highlight |
The Highlights package is a subset of the Editor package, and contains API's for creating, maintaining, and applying background, foreground, font, and underline highlights to regions of text in an editor pane.
|
Modifier and Type | Class and Description |
---|---|
class |
HighlightedLine
A
HighlightedLine object represents a line of text that has a HighlightStyle applied to it. |
Modifier and Type | Method and Description |
---|---|
HighlightedText |
HighlightLayer.addHighlight(HighlightStyle style, int startOffset, boolean startOffsetBias, int endOffset, boolean endOffsetBias)
Adds a highlight to the editor pane using the specified style and offsets.
|
HighlightedText |
HighlightLayer.addHighlight(HighlightStyle style, int startOffset, int endOffset)
Adds a highlight to the editor pane using the specified style and offsets.
|
HighlightedText |
HighlightLayer.addLineHighlight(HighlightStyle style, int line)
Adds a highlight to the editor pane using the specified style and offsets.
|
Modifier and Type | Method and Description |
---|---|
void |
HighlightLayer.changeHighlight(HighlightedText highlightedText, HighlightStyle newHighlightStyle)
Changes the highlight style of the previously created highlighted region of text.
|
void |
HighlightLayer.changeHighlight(HighlightedText highlightedText, HighlightStyle newHighlightStyle, int newStartOffset, int newEndOffset)
Moves the highlight region to a new set of offsets in the editor, and changes the highlight style used.
|
void |
HighlightLayer.changeHighlight(HighlightedText highlightedText, int newStartOffset, int newEndOffset)
Moves the highlight region to a new set of offsets in the editor.
|
void |
HighlightLayer.changeLineHighlight(HighlightedText highlightedLine, HighlightStyle newHighlightStyle, int newLine)
Moves the highlighted line to the new line in the editor, and sets a new highlight to use.
|
void |
HighlightLayer.removeHighlight(HighlightedText highlightedText)
Removes the given highlight from the editor pane.
|