public static class DefaultHighlighter.DefaultHighlightPainter extends LayeredHighlighter.LayerPainter
| Constructor and Description |
|---|
DefaultHighlightPainter(Color
Constructs a new highlight painter.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor()
Returns the color of the highlight.
|
void |
paint(Graphics
Paints a highlight.
|
Shape |
paintLayer(Graphics
Paints a portion of a highlight.
|
public DefaultHighlightPainter(Colorc)
c is null, the JTextComponent will be queried for its selection color.
c - the color for the highlight
public ColorgetColor()
public void paint(Graphicsg, int offs0, int offs1, Shape bounds, JTextComponent c)
g - the graphics context
offs0 - the starting model offset >= 0
offs1 - the ending model offset >= offs1
bounds - the bounding box for the highlight
c - the editor
public ShapepaintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)
paintLayer in class
LayeredHighlighter.LayerPainter
g - the graphics context
offs0 - the starting model offset >= 0
offs1 - the ending model offset >= offs1
bounds - the bounding box of the view, which is not necessarily the region to paint.
c - the editor
view - View painting for