1 28 package net.sf.jasperreports.charts.base; 29 30 import java.io.Serializable ; 31 32 import net.sf.jasperreports.charts.JRCategorySeries; 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 JRBaseCategorySeries implements JRCategorySeries, Serializable 44 { 45 46 47 50 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 51 52 protected JRExpression seriesExpression = null; 53 protected JRExpression categoryExpression = null; 54 protected JRExpression valueExpression = null; 55 protected JRExpression labelExpression = null; 56 protected JRHyperlink itemHyperlink; 57 58 59 62 protected JRBaseCategorySeries() 63 { 64 } 65 66 67 70 public JRBaseCategorySeries(JRCategorySeries categorySeries, JRBaseObjectFactory factory) 71 { 72 factory.put(categorySeries, this); 73 74 seriesExpression = factory.getExpression(categorySeries.getSeriesExpression()); 75 categoryExpression = factory.getExpression(categorySeries.getCategoryExpression()); 76 valueExpression = factory.getExpression(categorySeries.getValueExpression()); 77 labelExpression = factory.getExpression(categorySeries.getLabelExpression()); 78 itemHyperlink = factory.getHyperlink(categorySeries.getItemHyperlink()); 79 } 80 81 82 85 public JRExpression getSeriesExpression() 86 { 87 return seriesExpression; 88 } 89 90 93 public JRExpression getCategoryExpression() 94 { 95 return categoryExpression; 96 } 97 98 101 public JRExpression getValueExpression() 102 { 103 return valueExpression; 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 |