SubstanceColorScheme fillScheme, boolean hasShine) {
Graphics2D graphics = (Graphics2D) g.create();
Color[] fillColors = new Color[this.fractions.length];
for (int i = 0; i < this.fractions.length; i++) {
ColorSchemeSingleColorQuery colorQuery = this.colorQueries[i];
fillColors[i] = colorQuery.query(fillScheme);
}
MultipleGradientPaint gradient = new LinearGradientPaint(0, 0, 0,
height, this.fractions, fillColors, CycleMethod.REPEAT);
graphics.setPaint(gradient);