public class RectanglePainter
extends javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
| Constructor and Description |
|---|
RectanglePainter(java.awt.Color color) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Shape |
paintLayer(java.awt.Graphics g,
int offs0,
int offs1,
java.awt.Shape bounds,
javax.swing.text.JTextComponent c,
javax.swing.text.View view)
Paints a portion of a highlight.
|
public java.awt.Shape paintLayer(java.awt.Graphics g,
int offs0,
int offs1,
java.awt.Shape bounds,
javax.swing.text.JTextComponent c,
javax.swing.text.View view)
paintLayer in class javax.swing.text.DefaultHighlighter.DefaultHighlightPainterg - 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