| Package | Description |
|---|---|
| oracle.ide.ceditor |
The
Code Editor package contains the code editing implementation of the JDeveloper IDE. |
| oracle.javatools.editor |
The
Editor package is a basic framework for an editor component with syntax highlighting capabilities, built on top of the Swing text framework. |
| oracle.javatools.editor.gutter |
The Line Gutter package is a subset of the Editor package, and contains API for working with a
Gutter associated with an editor pane. |
| 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.
|
| oracle.javatools.editor.plugins |
The Plugins package is a subset of the Editor package, and is one way to extend the functionality of an editor pane.
|
| Modifier and Type | Method and Description |
|---|---|
static HighlightStyle |
CodeEditor.createHighlightStyle(java.lang.String internalName, java.lang.String publicName, int priority, java.awt.Color fgColor, java.awt.Color bgColor)
Utility routine to create a new highlight style with background and foreground attributes.
|
static HighlightStyle |
CodeEditor.createHighlightStyle(java.lang.String internalName, java.lang.String publicName, int priority, java.awt.Color fgColor, java.awt.Color bgColor, int fontStyle, int underlinePredefine, java.awt.Color underlineColor)
Utility routine to create a new highlight style with background, foreground, font, and underline attributes.
|
protected HighlightStyle |
AbstractBrowseClickPlugin.getHighlightStyleFor(int actionType)
Fetch the
HighlightStyle which should be used for highlighting the a given region for the specified action type. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BasicView.paintRow(java.awt.Graphics graphics, java.awt.Rectangle clipRect, int row, oracle.javatools.editor.BasicView.RenderFragmentGenerator generator, HighlightStyle sentinelStyle)
Paints the specified line of the view with the given styles and highlights.
|
static void |
FileOverviewMargin.setMarkColor(java.lang.String category, HighlightStyle highlightStyle)
Deprecated.
|
static void |
FileOverviewMargin.setMarkColor(java.lang.String category, int priority, HighlightStyle highlightStyle)
Deprecated.
|
void |
EditorSelectionWrap.updateSelectionHighlight(HighlightLayer layer, HighlightStyle caretStyle) |
void |
EditorSelectionColumns.updateSelectionHighlight(HighlightLayer layer, HighlightStyle caretStyle) |
void |
EditorSelection.updateSelectionHighlight(HighlightLayer layer, HighlightStyle caretStyle)
Update the Editors selection highlight layer in response to a possible change in selection
|
| Modifier and Type | Method and Description |
|---|---|
HighlightStyle |
LineGutterPlugin.Column.Mark.getHighlightStyle()
Fetches the HighlightStyle associated with this GutterMark when it was created.
|
HighlightStyle |
GutterMark.getHighlightStyle()
Fetches the HighlightStyle associated with this GutterMark when it was created.
|
| Modifier and Type | Method and Description |
|---|---|
GutterMark |
LineGutterPlugin.Column.addGutterMark(int line, javax.swing.Icon icon, HighlightStyle highlightStyle, int markOrder, int markOptions) |
GutterMark |
GutterColumn.addGutterMark(int line, javax.swing.Icon icon, HighlightStyle highlightStyle, int markOrder, int markOptions)
Adds a new
GutterMark to this column for the given line. |
GutterMark |
LineGutterPlugin.Column.addGutterMark(int line, javax.swing.Icon icon, HighlightStyle highlightStyle, int markOrder, int markOptions, java.awt.Color overviewColor)
Adds a new
GutterMark to this column for the given line. |
GutterMark |
GutterColumn.addGutterMark(int line, javax.swing.Icon icon, HighlightStyle highlightStyle, int markOrder, int markOptions, java.awt.Color overviewColor)
Adds a new
GutterMark to this column for the given line. |
| Constructor and Description |
|---|
LineGutterPlugin.Column.Mark(int line, int lineStart, javax.swing.Icon icon, HighlightStyle highlightStyle, int markOrder, int markOptions, java.awt.Color overviewColor)
Constructs a new Mark.
|
| Modifier and Type | Field and Description |
|---|---|
HighlightStyle |
HighlightFragment.backgroundStyle
The highlight style for the background attribute.
|
HighlightStyle |
HighlightFragment.fontStyle
The highlight style for the font attribute.
|
HighlightStyle |
HighlightFragment.foregroundStyle
The highlight style for the foreground attribute.
|
protected HighlightStyle |
HighlightedText.highlightStyle
The highlight style to use for rendering this fragment.
|
HighlightStyle |
HighlightFragment.underlineStyle
The highlight style for the underline attribute.
|
| Modifier and Type | Method and Description |
|---|---|
HighlightStyle |
HighlightRegistry.createStyle(java.lang.String styleName, java.lang.String presentationName, boolean enabled, int priority, java.awt.Color fgColor, java.awt.Color bgColor)
Create a new
HighlightStyle with the given name and highlight attributes. |
HighlightStyle |
HighlightRegistry.createStyle(java.lang.String styleName, java.lang.String presentationName, boolean enabled, int priority, java.awt.Color fgColor, java.awt.Color bgColor, int fontStyle, int underlinePredefinedPainter, java.awt.Color underlineColor)
Create a new
HighlightStyle with the given name and highlight attributes. |
HighlightStyle |
HighlightRegistry.createStyle(java.lang.String styleName, java.lang.String presentationName, boolean enabled, int priority, int fontStyle)
Create a new
HighlightStyle with the given name and highlight attributes. |
HighlightStyle |
HighlightRegistry.createStyle(java.lang.String styleName, java.lang.String presentationName, boolean enabled, int priority, int underlinePredefinedPainter, java.awt.Color underlineColor)
Create a new
HighlightStyle with the given name and highlight attributes. |
HighlightStyle |
HighlightRegistry.createStyle(java.lang.String styleName, java.lang.String presentationName, int priority, java.awt.Color fgColor, java.awt.Color bgColor)
Create a new
HighlightStyle with the given name and highlight attributes with a default enabled status of true. |
HighlightStyle |
HighlightRegistry.createTransientStyle(java.lang.String styleName, boolean enabled, int priority, java.awt.Color fgColor, java.awt.Color bgColor, int fontStyle, int underlinePredefinedPainter, java.awt.Color underlineColor)
Create a new transient
HighlightStyle with the given name and highlight attributes. |
HighlightStyle |
HighlightedText.getHighlightStyle()
Fetches the highlight style used for this region of highlight.
|
HighlightStyle |
HighlightFragmentsList.getSentinelBackground()
Fetch the final sentinel background style if any.
|
HighlightStyle |
HighlightFragmentsList.getSentinelUnderline()
Fetch the final sentinel underline style if any.
|
HighlightStyle |
HighlightRegistry.lookupStyle(java.lang.String styleName)
Fetches the style with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<HighlightStyle> |
HighlightRegistry.getStyleIterator()
Fetch an
Iterator for all of the styles within this registry. |
| Modifier and Type | Method and Description |
|---|---|
void |
HighlightFragmentsList.add(HighlightStyle highlightStyle, int startOffset, int endOffset)
Adds the given fragment to the list, accounting for priority and offsets so that the list is always sorted in increasing offsets with higher priority highlights displacing lower priority ones.
|
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.
|
void |
HighlightFragmentsList.addSentinel(HighlightStyle highlightStyle)
Adds a final sentinel fragment for background attribute.
|
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.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.
|
| Constructor and Description |
|---|
HighlightedLine(HighlightStyle highlightStyle, OffsetMark startMark, OffsetMark endMark)
Constructs a new HighlightedLine object.
|
HighlightedText(HighlightStyle highlightStyle, OffsetMark startMark, OffsetMark endMark)
Constructs a new HighlightedText object
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract HighlightStyle |
AbstractClickPlugin.getHighlightStyleFor(int actionType)
Fetch the
HighlightStyle which should be used for highlighting the a given region for the specified action type. |