Hi,
I have JFreeChart 1.0.1. I want to customize the drawing of legend items. I did the research in the news group, but all the postings talk about re-implementing the draw method in Standard Legend class. I can't find that class in JFreeChart 1.0.1. I know that I have to re-implement some draw method, and I have an idea how to do it. The problem is that I can't find that draw method in JfreeChart 1.0.1. Please help.
How to customize the drawing of legend items
-
- Posts: 11
- Joined: Fri Feb 03, 2006 9:27 pm
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
What kind of customisation do you want to do? You can do some things just by overriding the getLegendItem() method in the renderer. If you want to take over complete control, replace the LegendTitle class (or change the layout code it uses).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

