Class DefaultHighlighter
java.lang.Object
javax.swing.text.LayeredHighlighter
javax.swing.text.DefaultHighlighter
- All Implemented Interfaces:
Highlighter
- Direct Known Subclasses:
BasicTextUI.BasicHighlighter
Implements the Highlighter interfaces. Implements a simple highlight
painter that renders in a solid color.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Simple highlight painter that fills a highlighted area with a solid color.Nested classes/interfaces declared in class javax.swing.text.LayeredHighlighter
LayeredHighlighter.LayerPainter
Nested classes/interfaces declared in interface javax.swing.text.Highlighter
Highlighter.Highlight, Highlighter.HighlightPainter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LayeredHighlighter.LayerPainter
Default implementation of LayeredHighlighter.LayerPainter that can be used for painting highlights. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHighlight
(int p0, int p1, Highlighter.HighlightPainter p) Adds a highlight to the view.void
changeHighlight
(Object tag, int p0, int p1) Changes a highlight.void
Called when the UI is being removed from the interface of a JTextComponent.boolean