1 28 package net.sf.jasperreports.charts.xml; 29 30 31 import net.sf.jasperreports.engine.JRChart; 32 import net.sf.jasperreports.engine.design.JRDesignChart; 33 import net.sf.jasperreports.engine.design.JasperDesign; 34 import net.sf.jasperreports.engine.xml.JRBaseFactory; 35 36 import org.xml.sax.Attributes ; 37 38 42 public class JRTimeSeriesChartFactory extends JRBaseFactory { 43 public Object createObject( Attributes attrs ){ 44 JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2); 45 46 JRDesignChart chart = new JRDesignChart(jasperDesign, JRChart.CHART_TYPE_TIMESERIES ); 47 48 return chart; 49 } 50 51 } 52 | Popular Tags |