[patch] TickUnit for PolarPlot

A free public discussion forum for the JFreeChart class library.

[patch] TickUnit for PolarPlot

Postby matinh » Tue Jan 15, 2008 1:06 pm

Hi!

The PolarPlot doesn't allow one to control the angualar gridlines it draws. It's hardcoded to draw them at 45/90/135/etc. degrees.

I created a patch [0] which allows setting a TickUnit for the angular gridlines.

Note that the ticks do not support the TextAnchor and angle attributes (just as before), but the DefaultPolarRenderer doesn't use them anyway.

regards,
- martin

[0] http://sourceforge.net/tracker/index.php?func=detail&aid=1871902&group_id=15494&atid=315494
matinh
 
Posts: 467
Joined: Fri Aug 11, 2006 10:08 am
Location: Austria

Postby matinh » Thu Jan 17, 2008 12:05 pm

Just for the records, I found some more patches at JFreeChart's sourceforge-page that deal more or less with the same issue:

1811501: http://sourceforge.net/tracker/index.php?func=detail&aid=1811501&group_id=15494&atid=315494
1681909: http://sourceforge.net/tracker/index.php?func=detail&aid=1681909&group_id=15494&atid=315494

Which showed me at least two issue with my patch:
1) the equals(), clone(), read/writeObjecT() methods need to be modified.
2) the notifyListeners() method has to be called on changes to the plot which is not done within the current version of the patch.

An updated version (jfree-polarplot-v2.patch) has been uploaded to sourceforge.

- martin
matinh
 
Posts: 467
Joined: Fri Aug 11, 2006 10:08 am
Location: Austria

Postby david.gilbert » Thu Jan 17, 2008 3:51 pm

Thanks - I'll take a look.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11324
Joined: Fri Mar 14, 2003 10:29 am


Return to JFreeChart - General

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot], Yahoo [Bot] and 4 guests