1 28 package net.sf.jasperreports.charts.base; 29 30 import java.io.Serializable ; 31 32 import net.sf.jasperreports.charts.JRXySeries; 33 import net.sf.jasperreports.engine.JRConstants; 34 import net.sf.jasperreports.engine.JRExpression; 35 import net.sf.jasperreports.engine.JRHyperlink; 36 import net.sf.jasperreports.engine.base.JRBaseObjectFactory; 37 38 39 43 public class JRBaseXySeries implements JRXySeries, Serializable 44 { 45 46 47 50 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 51 52 protected JRExpression seriesExpression = null; 53 protected JRExpression xValueExpression = null; 54 protected JRExpression yValueExpression = null; 55 protected JRExpression labelExpression = null; 56 protected JRHyperlink itemHyperlink; 57 58 59 62 protected JRBaseXySeries() 63 { 64 } 65 66 67 70 public JRBaseXySeries(JRXySeries xySeries, JRBaseObjectFactory factory) 71 { 72 factory.put(xySeries, this); 73 74 seriesExpression = factory.getExpression(xySeries.getSeriesExpression()); 75 xValueExpression = factory.getExpression(xySeries.getXValueExpression()); 76 yValueExpression = factory.getExpression(xySeries.getYValueExpression()); 77 labelExpression = factory.getExpression(xySeries.getLabelExpression()); 78 itemHyperlink = factory.getHyperlink(xySeries.getItemHyperlink()); 79 } 80 81 82 85 public JRExpression getSeriesExpression() 86 { 87 return seriesExpression; 88 } 89 90 93 public JRExpression getXValueExpression() 94 { 95 return xValueExpression; 96 } 97 98 101 public JRExpression getYValueExpression() 102 { 103 return yValueExpression; 104 } 105 106 109 public JRExpression getLabelExpression() 110 { 111 return labelExpression; 112 } 113 114 115 public JRHyperlink getItemHyperlink() 116 { 117 return itemHyperlink; 118 } 119 120 } 121 | Popular Tags |