| Modifier and Type | Class and Description |
|---|---|
| public static interface | Highlighter.
A highlight. |
| public static interface | Highlighter.
Highlight renderer. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: an object that refers to the highlightthe beginning of the range >= 0 p0, int the end of the range >= p0 p1, Highlighter.the painter to use for the actual highlighting pAdds a highlight to the view. |
| public void | changeHighlight(Object
which highlight to change tag, int the beginning of the range >= 0 p0, int the end of the range >= p0 p1)Changes the given highlight to span a different portion of the document. |
| public void | deinstall(JTextComponent
the JTextComponent editor c)Called when the UI is being removed from the interface of a JTextComponent. |
| public Highlighter. | |
| public void | install(JTextComponent
the JTextComponent editor c)Called when the UI is being installed into the interface of a JTextComponent. |
| public void | |
| public void | |
| public void |
| addHighlight | back to summary |
|---|---|
| public Object addHighlight(int p0, int p1, Highlighter. Adds a highlight to the view. Returns a tag that can be used to refer to the highlight.
| |
| changeHighlight | back to summary |
|---|---|
| public void changeHighlight(Object tag, int p0, int p1) throws BadLocationException Changes the given highlight to span a different portion of the document. This may be more efficient than a remove/add when a selection is expanding/shrinking (such as a sweep with a mouse) by damaging only what changed.
| |
| deinstall | back to summary |
|---|---|
| public void deinstall(JTextComponent c) Called when the UI is being removed from the interface of a JTextComponent. This is used to unregister any listeners that were attached.
| |
| getHighlights | back to summary |
|---|---|
| public Highlighter. Fetches the current list of highlights.
| |
| install | back to summary |
|---|---|
| public void install(JTextComponent c) Called when the UI is being installed into the interface of a JTextComponent. This can be used to gain access to the model that is being navigated by the implementation of this interface.
| |
| paint | back to summary |
|---|---|
| public void paint(Graphics g) Renders the highlights.
| |
| removeAllHighlights | back to summary |
|---|---|
| public void removeAllHighlights() Removes all highlights this highlighter is responsible for. | |
| removeHighlight | back to summary |
|---|---|
| public void removeHighlight(Object tag) Removes a highlight from the view.
| |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public Highlighter. | |
| public int |
| getEndOffset | back to summary |
|---|---|
| public int getEndOffset() Gets the ending model offset for the highlight.
| |
| getPainter | back to summary |
|---|---|
| public Highlighter. Gets the painter for the highlighter.
| |
| getStartOffset | back to summary |
|---|---|
| public int getStartOffset() Gets the starting model offset for the highlight.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | paint(Graphics
the graphics context g, int the starting offset in the model >= 0 p0, int the ending offset in the model >= p0 p1, Shape the bounding box for the highlight bounds, JTextComponent the editor c)Renders the highlight. |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) Renders the highlight.
| |