OO Design question.

I am supposed to design a report generator, to draw graphs, trend lines etc. So basically i was thinking my design to be in the following way -

class DataGenerator - the class which fetches the required X axis values and Y axis values from the database.

I was thinking may be i can stored procedures and call the appropriate stored procedure from within the class and fetch the data accordingy

class ChartGeneratore - the class which draws the corresponding chart.

Please let me know any suggestions ( good or bad) in the above approach.

Sandeep

[582 byte] By [ssv45324a] at [2007-10-2 12:54:38]
# 1
Sounds good.Have a look at JFreeChart, which helps you a lot with charts of all kinds.RegardsClaus
Claus_Luethjea at 2007-7-13 10:09:28 > top of Java-index,Other Topics,Patterns & OO Design...