new GradientXYBarPainterAdapter(chartView.getG1WhitePosition(),
chartView.getG2FullIntensityPosition(), chartView.getG3LightIntensityPosition());
xyBarRenderer.setBarPainter(gradientPainter);
} else {
xyBarRenderer.setBarPainter(new StandardXYBarPainterAdapter());
}
} else if (renderer instanceof BarRenderer) {
BarRenderer barRenderer = (BarRenderer) renderer;
if (showGradient) {
validateGradientParameters(chartView.getG1WhitePosition(),