1 28 package net.sf.jasperreports.charts.base; 29 30 import java.io.Serializable ; 31 32 import net.sf.jasperreports.charts.JRTimePeriodSeries; 33 import net.sf.jasperreports.engine.JRExpression; 34 import net.sf.jasperreports.engine.JRHyperlink; 35 import net.sf.jasperreports.engine.base.JRBaseObjectFactory; 36 37 41 public class JRBaseTimePeriodSeries implements JRTimePeriodSeries, Serializable { 42 43 46 private static final long serialVersionUID=608; 47 48 protected JRExpression seriesExpression; 49 50 protected JRExpression startDateExpression; 51 52 protected JRExpression endDateExpression; 53 54 protected JRExpression valueExpression; 55 56 protected JRExpression labelExpression; 57 58 protected JRHyperlink itemHyperlink; 59 60 61 protected JRBaseTimePeriodSeries(){ 62 } 63 64 public JRBaseTimePeriodSeries( JRTimePeriodSeries timePeriodSeries, JRBaseObjectFactory factory ){ 65 factory.put( timePeriodSeries, factory ); 66 67 seriesExpression = factory.getExpression( timePeriodSeries.getSeriesExpression() ); 68 startDateExpression = factory.getExpression( timePeriodSeries.getStartDateExpression() ); 69 endDateExpression = factory.getExpression( timePeriodSeries.getEndDateExpression() ); 70 valueExpression = factory.getExpression( timePeriodSeries.getValueExpression() ); 71 labelExpression = factory.getExpression( timePeriodSeries.getLabelExpression() ); 72 itemHyperlink = factory.getHyperlink(timePeriodSeries.getItemHyperlink()); 73 } 74 75 public JRExpression getSeriesExpression(){ 76 return seriesExpression; 77 } 78 79 public JRExpression getStartDateExpression(){ 80 return startDateExpression; 81 } 82 83 public JRExpression getEndDateExpression(){ 84 return endDateExpression; 85 } 86 87 public JRExpression getValueExpression(){ 88 return valueExpression; 89 } 90 91 public JRExpression getLabelExpression(){ 92 return labelExpression; 93 } 94 95 public JRHyperlink getItemHyperlink() 96 { 97 return itemHyperlink; 98 } 99 } 100 | Popular Tags |