问题
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