Package org.fife.ui.autocomplete
Class OutlineHighlightPainter
java.lang.Object
javax.swing.text.LayeredHighlighter.LayerPainter
javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
org.fife.ui.autocomplete.OutlineHighlightPainter
- All Implemented Interfaces:
Highlighter.HighlightPainter
Highlight painter that draws an outline around the text. This is used to
draw bounds around function/method parameters.
- Version:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Returns the color to paint bounding boxes with.paintLayer
(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent c, View view) void
Sets the color to paint the bounding boxes with.Methods inherited from class javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
paint
-
Field Details
-
color
DefaultHighlightPainter doesn't allow changing color, so we must cache ours here.
-
-
Constructor Details
-
OutlineHighlightPainter
OutlineHighlightPainter(Color color) Constructor.- Parameters:
color
- The color to draw the bounding boxes with. This cannot benull
.
-
-
Method Details
-
getColor
Returns the color to paint bounding boxes with.- Overrides:
getColor
in classDefaultHighlighter.DefaultHighlightPainter
- Returns:
- The color.
- See Also:
-
paintLayer
- Overrides:
paintLayer
in classDefaultHighlighter.DefaultHighlightPainter
-
setColor
Sets the color to paint the bounding boxes with.- Parameters:
color
- The new color. This cannot benull
.- See Also:
-