Page 1 of 1

Which classes do I need to change to extend dates to 1800s?

Posted: Sun Jul 09, 2006 2:38 am
by Bigdaddy
I have run into a problem with JFreeChart using the org.jfree.data.time.Day class which uses the org.jfree.date.SerialDate class from JCommon. The SerialDate class begins at 1900, but I need it to at least begin at 1800. Which classes do I need to modify to achieve this functionality or are there a few threshold parameters that I can modify to get dates that can go back as far as 1800?

Thanks.

Posted: Sun Jul 09, 2006 11:15 am
by Bigdaddy
jcommon: 1.0.5
jfeechart: 1.0.1
java: 1.5.0_06

Ok, I have gone ahead and modified the following classes changing all documentation from the year 1900 to the year 1800 and I have modified logic where needed and everything seems to be working fine.

Modified Classes:

org.jfree.date.AnnualDateRule (documentation)
org.jfree.date.RelativeDayOfWeekRule (documentation)
org.jfree.date.SerialDate (documentation + logic)
org.jfree.date.SpreadsheetDate (documentation + logic)
org.jfree.date.junit.SerialDateTests (documentation + logic)
org.jfree.date.junit.SpreadsheetDateTests (documentation + logic)

If there are any other classes that I should modify, then please let me know.

I would have attached my changes to this post, but that functionality does not seem to be present on this forum.

Thanks.

Posted: Mon Jul 10, 2006 9:21 am
by Mimil
Hi,

I think you shoud send your modifications to David or Thomas (aka Taqua) to be sure that they will not be lost .... =)