Drawing blured shadow in JfreeChart?

2019-08-08 08:18发布

That's is question is in the title of this post, but anyway:

I use the JFreeChart to create chart in my app. And one of requirement is a soft blured shadow instead solid, which is presented by default.

I know I can add my image instead the default shadow, using

setShadowPaint(Paint paint);

but this way implies the creating blured image and adding it to the my report. Is there built case to achive needed effect ?

Thanks for all.

1条回答
兄弟一词,经得起流年.
2楼-- · 2019-08-08 08:51

There's nothing built-in, but you can use a ConvolveOp to blur an image; see the articles cited here for examples. You should be able to compose a suitable image in a BufferedImage and add it to the chart as an annotation.

查看更多
登录 后发表回答