/** * Creates and returns a Highlighter which highlights with * alternating background, starting with the base. * * @param baseBackground the background color for the even rows. * @param alternateBackground background color for odd rows. * @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); }
/** * Creates and returns a Highlighter which highlights with * alternating background, starting with the base. * * @param baseBackground the background color for the even rows. * @param alternateBackground background color for odd rows. * @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); }
/** * Creates and returns a Highlighter which highlights with * alternating background, starting with the base. * * @param baseBackground the background color for the even rows. * @param alternateBackground background color for odd rows. * @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); }
/** * Creates and returns a Highlighter which highlights with * alternating background, starting with the base. * * @param baseBackground the background color for the even rows. * @param alternateBackground background color for odd rows. * @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); }
/** * Creates and returns a Highlighter which highlights * with alternate background. the first Color.WHITE, the second * with the color depending on LF. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createAlternateStriping(int rowsPerGroup) { HighlightPredicate predicate = new RowGroupHighlightPredicate(rowsPerGroup); ColorHighlighter first = new ColorHighlighter(new NotHighlightPredicate(predicate), Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(predicate); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights * with alternate background. the first Color.WHITE, the second * with the color depending on LF. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createAlternateStriping(int rowsPerGroup) { HighlightPredicate predicate = new RowGroupHighlightPredicate(rowsPerGroup); ColorHighlighter first = new ColorHighlighter(new NotHighlightPredicate(predicate), Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(predicate); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights with * alternating background, starting with the base. * * @param baseBackground the background color for the even rows. * @param alternateBackground background color for odd rows. * @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); }
/** * Creates and returns a Highlighter which highlights * with alternate background. the first Color.WHITE, the second * with the color depending on LF. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createAlternateStriping(int rowsPerGroup) { HighlightPredicate predicate = new RowGroupHighlightPredicate(rowsPerGroup); ColorHighlighter first = new ColorHighlighter(new NotHighlightPredicate(predicate), Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(predicate); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights * with alternate background. the first Color.WHITE, the second * with the color depending on LF. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createAlternateStriping(int rowsPerGroup) { HighlightPredicate predicate = new RowGroupHighlightPredicate(rowsPerGroup); ColorHighlighter first = new ColorHighlighter(new NotHighlightPredicate(predicate), Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(predicate); return new CompoundHighlighter(first, hl); }
/** * Creates and returns a Highlighter which highlights * with alternate background. the first Color.WHITE, the second * with the color depending on LF. * * @param rowsPerGroup the number of rows in a group * @return a Highlighter striping every second row group background. */ public static Highlighter createAlternateStriping(int rowsPerGroup) { HighlightPredicate predicate = new RowGroupHighlightPredicate(rowsPerGroup); ColorHighlighter first = new ColorHighlighter(new NotHighlightPredicate(predicate), Color.WHITE, null); ColorHighlighter hl = new UIColorHighlighter(predicate); return new CompoundHighlighter(first, hl); }