how to show image in jfreechart

I want to show an image instead of a shape for each item in my xy scatter plot using JFreeChart. I was able to extend xylineandshaperenderer to draw an image but i can show the same image for each item. I want to show image specific to each item. I looked at the source code, the code uses int to represent an item(as against an object), it makes difficult to modify it, any ideas to do it in the simplest way?
npl77Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
You would properly have to override a paint/paintComponent method. Try using the int as a index into a map-like structure
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
npl77Author Commented:
thanks CEHJ, i thought of doing that, actually i am getting data from database....to use int as index, i'll have to write the dataset myself..i don't think of any easier way, i guess thats the only way to go, i was wondering if there is a better way, the source code of jfreechart is by no means object oriented and not extensible but after all its free, so i've no right to complain :)
0
CEHJCommented:
:-)

Perhaps you could have a look at this too?

http://java-source.net/open-source/charting-and-reporting/cewolf
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.