0.9.5: private class variables

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Hans Stössel

0.9.5: private class variables

Post by Hans Stössel » Thu Feb 06, 2003 2:16 pm

Hi

I work with the beta version of 0.9.5. There are some bugs (of course) and I implemented some workaround. I write my own classes, extended from the JFreeChart classes. That works normally fine, but that the variables often has private access complicate it. I think, it would be better that the class variables are protedcted and not private or if they are private, there should be a method for access.

Thanks

Regards

Hans

Mof

Re: 0.9.5: private class variables

Post by Mof » Thu Feb 06, 2003 4:06 pm

Just wandering how you get access to beta versions of JFreeChart ?
I tried the sourceforge cvs repository but seemed to only contain the build scripts, and not the source.

BTW, I completly agree that more things should be made protected rather than private, or you should have getters/setters...

Mof.

David Gilbert

Re: 0.9.5: private class variables

Post by David Gilbert » Thu Feb 06, 2003 4:14 pm

Please give details of any attributes that you require getters and setters for and I will look at it for the 0.9.6 release.

Regards,

Dave Gilbert

Hans Stössel

Re: 0.9.5: private class variables

Post by Hans Stössel » Fri Feb 07, 2003 10:43 am

In 0.9.5 is mostly OK, the most variables I used in the Beta are now accessible with getters....

I have only one problem: I have an OverlaidXYPlot with 2 Y-Axis. But for the second axis there is a wrong renderer2 method. I replace this method in my from OverlaidXYPlot extended class, but I have no access to the private List subplots. This is the only thing I miss in 0.9.5 and for my application.

Thanks

Hans

Hans Stössel

Re: 0.9.5: private class variables

Post by Hans Stössel » Fri Feb 07, 2003 10:56 am

One more thing:

getSecondaryRangeAxis is also wrong in XYPlot, if I want create an OverlaidXYPlot with 2 Y-Axis.

Regards

Hans

Locked