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