1 28 package net.sf.jasperreports.charts.base; 29 30 import java.io.Serializable ; 31 32 import net.sf.jasperreports.charts.JRChartAxis; 33 import net.sf.jasperreports.engine.JRChart; 34 import net.sf.jasperreports.engine.JRConstants; 35 import net.sf.jasperreports.engine.base.JRBaseObjectFactory; 36 37 43 public class JRBaseChartAxis implements JRChartAxis, Serializable 44 { 45 46 49 protected byte position = POSITION_LEFT_OR_TOP; 50 51 54 protected JRChart chart = null; 55 56 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 57 58 61 public JRBaseChartAxis() 62 { 63 } 64 65 public JRBaseChartAxis(JRChartAxis axis, JRBaseObjectFactory factory) 66 { 67 factory.put(axis, this); 68 69 this.position = axis.getPosition(); 70 this.chart = factory.getChart(axis.getChart()); 71 } 72 73 78 public byte getPosition() 79 { 80 return position; 81 } 82 83 90 public JRChart getChart() 91 { 92 return chart; 93 } 94 } 95 | Popular Tags |