David,
Just downloaded 0.9.5 and trying to compile. I've extended several classes and now running into lot of problems as some variables are now private. Also, what happened to getChart() method in Plot class ?
Thanks
Mudit
revisiting JFreeCharts - what happened to Plot.getChart() an
Re: revisiting JFreeCharts - what happened to Plot.getChart(
Hi Mudit,
The getChart() method in the Plot class has been removed because it is an awkward field to maintain for combined charts (where you can have subplots within subplots within...), and also I have found no practical use for it. If you want to argue the case for putting it back in, I'll listen.
I have changed almost all field to private and added accessor methods for them. A couple of people think this is a bad thing, I'm not convinced yet that it is so I'm going to run with it for a while and see. After 1.0.0 is released, the accessor methods will buy me a little flexibility for making changes without breaking the API.
Regards,
Dave Gilbert
The getChart() method in the Plot class has been removed because it is an awkward field to maintain for combined charts (where you can have subplots within subplots within...), and also I have found no practical use for it. If you want to argue the case for putting it back in, I'll listen.
I have changed almost all field to private and added accessor methods for them. A couple of people think this is a bad thing, I'm not convinced yet that it is so I'm going to run with it for a while and see. After 1.0.0 is released, the accessor methods will buy me a little flexibility for making changes without breaking the API.
Regards,
Dave Gilbert
Re: revisiting JFreeCharts - what happened to Plot.getChart(
David,
Fair enough. I'm fan of accessor methods anyway. I'll keep a list of the newly private fields which don't have any accessor methods yet. Then may be you can add accessor method for those fields.
BTW, how do I rebuild the JFreeChart jar file ? Is it simple/straight enough ? Because, in current condition , I may have to change back some fields from private to public or add my own accessor methods in the class. Is there any document/thread on building JfreeChart ?
Thanks
Mudit
Fair enough. I'm fan of accessor methods anyway. I'll keep a list of the newly private fields which don't have any accessor methods yet. Then may be you can add accessor method for those fields.
BTW, how do I rebuild the JFreeChart jar file ? Is it simple/straight enough ? Because, in current condition , I may have to change back some fields from private to public or add my own accessor methods in the class. Is there any document/thread on building JfreeChart ?
Thanks
Mudit