@Override
public void paint(GlyphView v, Graphics g, Shape a, int p0, int p1) {
int s = 0;
Color saved = g.getColor();
for (Map.Entry<Interval, Color> entry : coloredRegions.entrySet()) {
Interval region = entry.getKey();
int colStart = region.startsAt();
int colEnd = colStart + region.length();
if (colStart > s) {
delegate.paint(v, g, a, s, colStart);
}
g.setColor(entry.getValue());
delegate.paint(v, g, a, colStart, colEnd);