01: package dinamica;
02:
03: import org.jfree.chart.*;
04: import org.jfree.chart.plot.*;
05:
06: /**
07: * Super class to build server-side chart plugins,
08: * each plugin produces a different type of chart,
09: * based on the JFreeChart component
10: * Last update: 17/11/2003
11: * @author Martin Cordova (dinamica@martincordova.com)
12: */
13: public abstract class AbstractChartPlugin {
14: /**
15: * Generate chart object
16: * @param chartInfo Recordset containing the chart configuration
17: * @param data Recordset containing the data to be plotted
18: * @return Reference to chart object
19: * @throws Throwable
20: */
21: public abstract JFreeChart getChart(Recordset chartInfo,
22: Recordset data) throws Throwable;
23:
24: /**
25: * Configure chart decoration (legends, labels, color intensity, etc)
26: * @param p Plot object - cast this object to the specific plot type you need
27: */
28: public void configurePlot(Plot p) {
29: }
30:
31: }
|