Highlighter.HighlightPainterpublic static class DefaultHighlighter.DefaultHighlightPainter extends LayeredHighlighter.LayerPainter
| Constructor | Description |
|---|---|
DefaultHighlightPainter(java.awt.Color c) |
Constructs a new highlight painter.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.awt.Color |
getColor() |
Returns the color of the highlight.
|
void |
paint(java.awt.Graphics g,
int offs0,
int offs1,
java.awt.Shape bounds,
JTextComponent c) |
Paints a highlight.
|
java.awt.Shape |
paintLayer(java.awt.Graphics g,
int offs0,
int offs1,
java.awt.Shape bounds,
JTextComponent c,
View view) |
Paints a portion of a highlight.
|
public DefaultHighlightPainter(java.awt.Color c)
c is null,
the JTextComponent will be queried for its selection color.c - the color for the highlightpublic java.awt.Color getColor()
public void paint(java.awt.Graphics g,
int offs0,
int offs1,
java.awt.Shape bounds,
JTextComponent c)
g - the graphics contextoffs0 - the starting model offset >= 0offs1 - the ending model offset >= offs1bounds - the bounding box for the highlightc - the editorpublic java.awt.Shape paintLayer(java.awt.Graphics g,
int offs0,
int offs1,
java.awt.Shape bounds,
JTextComponent c,
View view)
paintLayer in class LayeredHighlighter.LayerPainterg - the graphics contextoffs0 - the starting model offset >= 0offs1 - the ending model offset >= offs1bounds - the bounding box of the view, which is not
necessarily the region to paint.c - the editorview - View painting for Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.abuild.jdk9-71a766d4c180