1 28 package net.sf.jasperreports.charts.fill; 29 30 import net.sf.jasperreports.charts.JRChartAxis; 31 import net.sf.jasperreports.engine.JRChart; 32 import net.sf.jasperreports.engine.JRConstants; 33 import net.sf.jasperreports.engine.fill.JRFillChart; 34 import net.sf.jasperreports.engine.fill.JRFillObjectFactory; 35 36 45 public class JRFillChartAxis implements JRChartAxis 46 { 47 48 protected JRChartAxis parent; 49 50 54 protected JRFillChart fillChart = null; 55 56 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 57 58 59 public JRFillChartAxis(JRChartAxis axis, JRFillObjectFactory factory) 60 { 61 factory.put(axis, this); 62 63 this.parent = axis; 64 this.fillChart = (JRFillChart) factory.getChart(axis.getChart()); 65 } 66 67 74 public JRFillChart getFillChart() 75 { 76 return fillChart; 77 } 78 79 public JRChart getChart() 80 { 81 return parent.getChart(); 82 } 83 84 public byte getPosition() 85 { 86 return parent.getPosition(); 87 } 88 } 89 | Popular Tags |