From: Lora L. <Lor...@sa...> - 2004-04-23 15:16:03
|
Yes the developer before me needed 4 new chart types which is why he = modified ChartType.java and AxisChart.java. =20 If I am understanding you, then the correct way to add the new chart = types is to modify these source files instead of subclassing. =20 I appreciate your quick response. =20 Thank you, Lora Lantzy -----Original Message----- From: Nathaniel G. Auvil [mailto:nat...@ya...]=20 Sent: Friday, April 23, 2004 10:47 AM To: jch...@li... Subject: Re: [jCharts-users] Trying to subclass Are you trying to add your own chart type? If so, you would have to do = several things to the internals of jcharts, including modifying that = file. the classes are abstract because they only contain static methods for = rendering the chart. It gets driven by AxisChart. And unless you are = creating a new chart type, this should not be of concern as you would = not call these classes directly. --- Lora Lantzy <Lor...@sa...> wrote: > I inherited some JCharts code from another developer and am trying to=20 > subclass ChartType.java and AxisChart.java. The previous programmer=20 > edited the JCharts source code which has now prevented me from using=20 > the latest version. I have run into some problems especially with=20 > ChartType.java. The constructor is private and thus I am unable to=20 > subclass it. I am sure there is a reason for making it private but I=20 > am hoping there is a solution for those who need to subclass=20 > ChartType. With AxisChart, I am running into problems since all the=20 > classes (AreaChart, BarChart, LineChart, etc) are abstract. I would=20 > appreciate any help that can be provided. >=20 > Thank you, > Lora Lantzy >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek=20 > For a limited time only, get FREE Ground shipping on all orders of $35 = > or more. Hurry up and shop folks, this offer expires April 30th!=20 > http://www.thinkgeek.com/freeshipping/?cpg=12297 > _______________________________________________ > jCharts-users mailing list jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users =09 =09 __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25=A2 = http://photos.yahoo.com/ph/print_splash ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For = a limited time only, get FREE Ground shipping on all orders of $35 or = more. Hurry up and shop folks, this offer expires April 30th! = http://www.thinkgeek.com/freeshipping/?cpg=3D12297 _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |