Glow

class Glow(colors: Color)

A mechanism for highlighting explicit spans of text. It's composed of GlowHighlightRangePainters that can paint the initial and/or final characters of the span, and the interior portions of the span. Those subranges (at most 3) are added to a JTextPane's highlighter's highlighted regions, using the specific GlowHighlightRangePainter for each range.

At rendering time, the captured GlowHighlightRangePainter for a range is told to paint itself for each potentially smaller run of text that has the same styling information throughout that smaller run.

Parameters

colors

The array of Colors to draw in successive rings around the text.

Constructors

Link copied to clipboard
constructor(vararg colors: Color)

Functions

Link copied to clipboard

Select the appropriate GlowHighlightRangePainter for highlighting text.