2 * Created on 13.04.2003
4 * To change the template for this generated file go to
5 * Window>Preferences>Java>Code Generation>Code and Comments
7 package de.laures.cewolf.taglib;
9 import java.io.Serializable;
12 import org.jfree.chart.JFreeChart;
13 import org.jfree.data.general.Dataset;
15 import de.laures.cewolf.ChartValidationException;
16 import de.laures.cewolf.DatasetProduceException;
17 import de.laures.cewolf.DatasetProducer;
22 * To change the template for this generated type comment go to
23 * Window>Preferences>Java>Code Generation>Code and Comments
25 public class SimpleChartDefinition extends AbstractChartDefinition implements DataAware, Serializable {
27 private DataContainer dataAware = new DataContainer();
29 protected JFreeChart produceChart() throws DatasetProduceException, ChartValidationException {
30 return CewolfChartFactory.getChartInstance(type, title, xAxisLabel, yAxisLabel, (Dataset)getDataset());
33 public Object getDataset() throws DatasetProduceException {
34 return dataAware.getDataset();
37 public void setDataProductionConfig(DatasetProducer dsp, Map params, boolean useCache) {
38 dataAware.setDataProductionConfig(dsp, params, useCache);