KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dinamica > AbstractChartPlugin


1 package dinamica;
2
3 import org.jfree.chart.*;
4 import org.jfree.chart.plot.*;
5
6 /**
7  * Super class to build server-side chart plugins,
8  * each plugin produces a different type of chart,
9  * 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     /**
16      * Generate chart object
17      * @param chartInfo Recordset containing the chart configuration
18      * @param data Recordset containing the data to be plotted
19      * @return Reference to chart object
20      * @throws Throwable
21      */

22     public abstract JFreeChart getChart(Recordset chartInfo, Recordset data) throws Throwable JavaDoc;
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     
32 }
33
Popular Tags