public class TransparentHighlightPainter extends UnderlineFactory.Underliner
Constructor and Description |
---|
TransparentHighlightPainter(java.awt.Color color,
float alpha) |
Modifier and Type | Method and Description |
---|---|
protected void |
paint(java.awt.Graphics g,
java.awt.Rectangle rect,
javax.swing.text.JTextComponent c) |
paint, paintLayer
public TransparentHighlightPainter(java.awt.Color color, float alpha)
color
- the color to paint the background inalpha
- the transparency level (1.0 = not transparent, 0.0 = full transparency)protected void paint(java.awt.Graphics g, java.awt.Rectangle rect, javax.swing.text.JTextComponent c)
paint
in class UnderlineFactory.Underliner