更改颜色JFreeChart中注释的线宽 [英] Change colour & line width of an Annotation in JFreeChart

查看:52
本文介绍了更改颜色JFreeChart中注释的线宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为绘图添加注释,但是我不知道如何更改其颜色或线宽(描边).我已经尽力阅读了文档,但是我没有主意.有人可以帮忙吗?

I am adding an annotation to my plot, but I can't work out how to change the colour or line width (stroke) of this. I've read through the documentation as best as I can but I'm out of ideas. Can anyone help?

Shape shape = new Ellipse2D.Double(circleXValue - radius, circleYValue - radius, radius + radius, radius + radius);
XYShapeAnnotation annotation = new XYShapeAnnotation(shape);
// ??
plot.addAnnotation(annotation);

推荐答案

您正在使用此您可能要使用 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆