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 JRBar3DChartFactory extends JRBaseFactory { 43 44 public Object createObject( Attributes attrs ){ 45 JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2); 46 47 JRDesignChart chart = new JRDesignChart(jasperDesign, JRChart.CHART_TYPE_BAR3D); 48 49 return chart; 50 } 51 52 } 53 | Popular Tags |