1

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.

Eugene Shmorgun
  • 2,083
  • 12
  • 42
  • 67
  • would you please rephrase this line `but this way implies the creating blured image and adding it to the my report. Is there built case to achive needed effect ?` its not clear – exexzian Jan 15 '13 at 19:35
  • I keep in mind that I can prepare blured image via the code and use this image in setShadowPaint. I'm looking for built-in method for this. – Eugene Shmorgun Jan 15 '13 at 19:38
  • There's nothing built-in, but you can use a `ConvolveOp` to blur an image. See the articles cited [here](http://stackoverflow.com/a/3528196/230513). – trashgod Jan 16 '13 at 15:32
  • You are welcome; I've elaborated below. – trashgod Jan 17 '13 at 04:05

1 Answers1

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.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045