When i use setSeriesPaint(0, new Color(255,0,0,128) to set the transparency of a color on a BarRenderer3D, it correctly shows the
transparency for the "front" panel of the bar, but the side and top are
still an alpha 1.0. Is this a bug, or are these drawn from a different
value?
Jeff
3DBar colors
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
It is this code in the BarRenderer3D class that causes the problem:
If you comment it out, the problem goes away. I don't know if losing the transparency is a bug in the darker() method, or a feature.
Code: Select all
if (itemPaint instanceof Color) {
g2.setPaint(((Color) itemPaint).darker());
}
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

