Class ColorHighlightPainter

java.lang.Object
ro.sync.ecss.extensions.api.highlights.ColorHighlightPainter
All Implemented Interfaces:
HighlightPainter, PrioritizableHighlightPainter, TextForegroundHighlighterPainter

@API(type=EXTENDABLE, src=PUBLIC) public class ColorHighlightPainter extends Object implements TextForegroundHighlighterPainter, PrioritizableHighlightPainter
Painter that can be used to customize the way that a highlight is displayed by setting custom text decoration, text decoration stroke, background color or stroke color.
  • Constructor Details

    • ColorHighlightPainter

      public ColorHighlightPainter()
      Default constructor. The color is red.
    • ColorHighlightPainter

      public ColorHighlightPainter(Color color, int height, int totalHeight)
      Constructor.
      Parameters:
      color - The color to use for highlight.
      height - The height of the highlight line. This may be smaller than the total height. If it is, the extra space will remain under the line.
      totalHeight - The height of the highlight.
  • Method Details