revisiting JFreeCharts - what happened to Plot.getChart() an

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mudit Wahal

revisiting JFreeCharts - what happened to Plot.getChart() an

Post by Mudit Wahal » Mon Feb 03, 2003 5:43 am

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

David Gilbert

Re: revisiting JFreeCharts - what happened to Plot.getChart(

Post by David Gilbert » Mon Feb 03, 2003 2:21 pm

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

Mudit Wahal

Re: revisiting JFreeCharts - what happened to Plot.getChart(

Post by Mudit Wahal » Mon Feb 03, 2003 4:35 pm

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

Locked