开发者

JFreeChart: how to change XYPlot foreground color?

开发者 https://www.devze.com 2023-01-22 18:54 出处:网络
The JFreeChart XYPlot background color is chang开发者_开发技巧ed using setBackgroundPaint() but there doesn\'t seem to be a corresponding setForegroundPaint().

The JFreeChart XYPlot background color is chang开发者_开发技巧ed using setBackgroundPaint() but there doesn't seem to be a corresponding setForegroundPaint().

XYPlot plot = (XYPlot) chart.getPlot();
plot.setBackgroundPaint(Color.BLACK);

How is the foreground color (the plot) changed?


eg:

XYItemRenderer renderer = plot.getRenderer();
renderer.setSeriesPaint(0, Color.CYAN);
0

精彩评论

暂无评论...
验证码 换一张
取 消