Class TransparentHighlightPainter

  • All Implemented Interfaces:
    javax.swing.text.Highlighter.HighlightPainter

    public class TransparentHighlightPainter
    extends UnderlineFactory.Underliner
    Paints transparent background color
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransparentHighlightPainter

        public TransparentHighlightPainter​(java.awt.Color color,
                                           float alpha)
        Parameters:
        color - the color to paint the background in
        alpha - the transparency level (1.0 = not transparent, 0.0 = full transparency)