1 28 package net.sf.jasperreports.engine; 29 30 import java.util.HashMap ; 31 import java.util.Map ; 32 33 import net.sf.jasperreports.charts.JRAreaPlot; 34 import net.sf.jasperreports.charts.JRBar3DPlot; 35 import net.sf.jasperreports.charts.JRBarPlot; 36 import net.sf.jasperreports.charts.JRBubblePlot; 37 import net.sf.jasperreports.charts.JRCandlestickPlot; 38 import net.sf.jasperreports.charts.JRCategoryDataset; 39 import net.sf.jasperreports.charts.JRCategorySeries; 40 import net.sf.jasperreports.charts.JRLinePlot; 41 import net.sf.jasperreports.charts.JRPie3DPlot; 42 import net.sf.jasperreports.charts.JRPieDataset; 43 import net.sf.jasperreports.charts.JRPiePlot; 44 import net.sf.jasperreports.charts.JRTimePeriodDataset; 45 import net.sf.jasperreports.charts.JRTimePeriodSeries; 46 import net.sf.jasperreports.charts.JRTimeSeries; 47 import net.sf.jasperreports.charts.JRTimeSeriesDataset; 48 import net.sf.jasperreports.charts.JRXyzDataset; 49 import net.sf.jasperreports.charts.JRXyzSeries; 50 import net.sf.jasperreports.crosstabs.JRCrosstab; 51 52 53 57 public abstract class JRAbstractObjectFactory 58 { 59 60 61 64 private Map objectsMap = new HashMap (); 65 66 67 70 protected Object get(Object object) 71 { 72 return objectsMap.get(object); 73 } 74 75 78 public void put(Object object, Object copy) 79 { 80 objectsMap.put(object, copy); 81 } 82 83 84 87 public abstract JRReportFont getReportFont(JRReportFont font); 88 89 92 public abstract JRStyle getStyle(JRStyle style); 93 94 97 public abstract JRElementGroup getElementGroup(JRElementGroup elementGroup); 98 99 102 public abstract JRBreak getBreak(JRBreak breakElement); 103 104 107 public abstract JRLine getLine(JRLine line); 108 109 112 public abstract JRRectangle getRectangle(JRRectangle rectangle); 113 114 117 public abstract JREllipse getEllipse(JREllipse ellipse); 118 119 122 public abstract JRImage getImage(JRImage image); 123 124 127 public abstract JRStaticText getStaticText(JRStaticText staticText); 128 129 132 public abstract JRTextField getTextField(JRTextField textField); 133 134 137 public abstract JRSubreport getSubreport(JRSubreport subreport); 138 139 140 143 public abstract JRPieDataset getPieDataset(JRPieDataset pieDataset); 144 145 148 public abstract JRPiePlot getPiePlot(JRPiePlot piePlot); 149 150 151 154 public abstract JRPie3DPlot getPie3DPlot(JRPie3DPlot pie3DPlot); 155 156 157 160 public abstract JRCategoryDataset getCategoryDataset(JRCategoryDataset categoryDataset); 161 162 163 166 public abstract JRTimeSeriesDataset getTimeSeriesDataset( JRTimeSeriesDataset timeSeriesDataset ); 167 168 171 public abstract JRTimePeriodDataset getTimePeriodDataset( JRTimePeriodDataset timePeriodDataset ); 172 173 176 public abstract JRTimePeriodSeries getTimePeriodSeries( JRTimePeriodSeries timePeriodSeries ); 177 178 181 public abstract JRTimeSeries getTimeSeries( JRTimeSeries timeSeries ); 182 183 186 public abstract JRCategorySeries getCategorySeries(JRCategorySeries categorySeries); 187 188 191 public abstract JRXyzDataset getXyzDataset( JRXyzDataset xyzDataset ); 192 193 196 public abstract JRXyzSeries getXyzSeries( JRXyzSeries xyzSeries ); 197 198 199 202 public abstract JRBarPlot getBarPlot(JRBarPlot barPlot); 203 204 207 public abstract JRBar3DPlot getBar3DPlot( JRBar3DPlot barPlot ); 208 209 210 213 public abstract JRLinePlot getLinePlot( JRLinePlot linePlot ); 214 215 216 219 public abstract JRAreaPlot getAreaPlot( JRAreaPlot areaPlot ); 220 221 222 225 public abstract JRBubblePlot getBubblePlot( JRBubblePlot bubblePlot ); 226 227 228 231 public abstract JRCandlestickPlot getCandlestickPlot(JRCandlestickPlot candlestickPlot); 232 233 234 237 public abstract JRChart getChart(JRChart chart); 238 239 240 public abstract JRCrosstab getCrosstab(JRCrosstab crosstab); 241 242 public abstract JRFrame getFrame(JRFrame frame); 243 244 public abstract JRConditionalStyle getConditionalStyle(JRConditionalStyle conditionalStyle, JRStyle parentStyle); 245 246 public abstract JRExpression getExpression(JRExpression expression, boolean assignNotUsedId); 247 248 public JRExpression getExpression(JRExpression expression) 249 { 250 return getExpression(expression, false); 251 } 252 } 253 | Popular Tags |