1 28 package net.sf.jasperreports.charts.base; 29 30 import net.sf.jasperreports.charts.JRValueDataset; 31 import net.sf.jasperreports.engine.JRChartDataset; 32 import net.sf.jasperreports.engine.JRConstants; 33 import net.sf.jasperreports.engine.JRExpression; 34 import net.sf.jasperreports.engine.JRExpressionCollector; 35 import net.sf.jasperreports.engine.base.JRBaseChartDataset; 36 import net.sf.jasperreports.engine.base.JRBaseObjectFactory; 37 import net.sf.jasperreports.engine.design.JRVerifier; 38 39 40 48 public class JRBaseValueDataset extends JRBaseChartDataset implements JRValueDataset 49 { 50 51 52 55 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 56 57 60 protected JRExpression valueExpression = null; 61 62 63 68 public JRBaseValueDataset(JRChartDataset dataset) 69 { 70 super(dataset); 71 } 72 73 74 82 public JRBaseValueDataset(JRValueDataset dataset, JRBaseObjectFactory factory) 83 { 84 super(dataset, factory); 85 86 valueExpression = factory.getExpression(dataset.getValueExpression()); 87 } 88 89 90 93 public JRExpression getValueExpression() 94 { 95 return valueExpression; 96 } 97 98 99 102 public byte getDatasetType() { 103 return JRChartDataset.VALUE_DATASET; 104 } 105 106 113 public void collectExpressions(JRExpressionCollector collector) 114 { 115 collector.collect(this); 116 } 117 118 public void validate(JRVerifier verifier) 119 { 120 verifier.verify(this); 121 } 122 123 } 124 | Popular Tags |