Drawing blured shadow in JfreeChart?

早过忘川 提交于 2019-12-11 06:39:52

问题


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:


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.



来源:https://stackoverflow.com/questions/14345426/drawing-blured-shadow-in-jfreechart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!