* @param linesPerStripe the number of rows in a group
* @return a Highlighter striping every second row group background.
*/
public static Highlighter createAlternateStriping(Color baseBackground, Color alternateBackground, int linesPerStripe) {
HighlightPredicate predicate = new RowGroupHighlightPredicate(linesPerStripe);
ColorHighlighter base = new ColorHighlighter(new NotHighlightPredicate(predicate), baseBackground, null);
ColorHighlighter alternate = new ColorHighlighter(predicate, alternateBackground, null);
return new CompoundHighlighter(base, alternate);
}