KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > jasperreports > engine > JRAbstractObjectFactory


1 /*
2  * ============================================================================
3  * GNU Lesser General Public License
4  * ============================================================================
5  *
6  * JasperReports - Free Java report-generating library.
7  * Copyright (C) 2001-2006 JasperSoft Corporation http://www.jaspersoft.com
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22  *
23  * JasperSoft Corporation
24  * 303 Second Street, Suite 450 North
25  * San Francisco, CA 94107
26  * http://www.jaspersoft.com
27  */

28 package net.sf.jasperreports.engine;
29
30 import java.util.HashMap JavaDoc;
31 import java.util.Map JavaDoc;
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 /**
54  * @author Teodor Danciu (teodord@users.sourceforge.net)
55  * @version $Id: JRAbstractObjectFactory.java 1502 2006-11-21 18:14:56 +0200 (Tue, 21 Nov 2006) teodord $
56  */

57 public abstract class JRAbstractObjectFactory
58 {
59
60
61     /**
62      *
63      */

64     private Map JavaDoc objectsMap = new HashMap JavaDoc();
65
66
67     /**
68      *
69      */

70     protected Object JavaDoc get(Object JavaDoc object)
71     {
72         return objectsMap.get(object);
73     }
74
75     /**
76      *
77      */

78     public void put(Object JavaDoc object, Object JavaDoc copy)
79     {
80         objectsMap.put(object, copy);
81     }
82
83
84     /**
85      *
86      */

87     public abstract JRReportFont getReportFont(JRReportFont font);
88
89     /**
90      *
91      */

92     public abstract JRStyle getStyle(JRStyle style);
93
94     /**
95      *
96      */

97     public abstract JRElementGroup getElementGroup(JRElementGroup elementGroup);
98
99     /**
100      *
101      */

102     public abstract JRBreak getBreak(JRBreak breakElement);
103
104     /**
105      *
106      */

107     public abstract JRLine getLine(JRLine line);
108
109     /**
110      *
111      */

112     public abstract JRRectangle getRectangle(JRRectangle rectangle);
113
114     /**
115      *
116      */

117     public abstract JREllipse getEllipse(JREllipse ellipse);
118
119     /**
120      *
121      */

122     public abstract JRImage getImage(JRImage image);
123
124     /**
125      *
126      */

127     public abstract JRStaticText getStaticText(JRStaticText staticText);
128
129     /**
130      *
131      */

132     public abstract JRTextField getTextField(JRTextField textField);
133
134     /**
135      *
136      */

137     public abstract JRSubreport getSubreport(JRSubreport subreport);
138
139
140     /**
141      *
142      */

143     public abstract JRPieDataset getPieDataset(JRPieDataset pieDataset);
144
145     /**
146      *
147      */

148     public abstract JRPiePlot getPiePlot(JRPiePlot piePlot);
149
150
151     /**
152      *
153      */

154     public abstract JRPie3DPlot getPie3DPlot(JRPie3DPlot pie3DPlot);
155
156
157     /**
158      *
159      */

160     public abstract JRCategoryDataset getCategoryDataset(JRCategoryDataset categoryDataset);
161
162
163     /**
164      *
165      */

166     public abstract JRTimeSeriesDataset getTimeSeriesDataset( JRTimeSeriesDataset timeSeriesDataset );
167
168     /**
169      *
170      */

171     public abstract JRTimePeriodDataset getTimePeriodDataset( JRTimePeriodDataset timePeriodDataset );
172
173     /**
174      *
175      */

176     public abstract JRTimePeriodSeries getTimePeriodSeries( JRTimePeriodSeries timePeriodSeries );
177
178     /**
179      *
180      */

181     public abstract JRTimeSeries getTimeSeries( JRTimeSeries timeSeries );
182
183     /**
184      *
185      */

186     public abstract JRCategorySeries getCategorySeries(JRCategorySeries categorySeries);
187
188     /**
189      *
190      */

191     public abstract JRXyzDataset getXyzDataset( JRXyzDataset xyzDataset );
192
193     /**
194      *
195      */

196     public abstract JRXyzSeries getXyzSeries( JRXyzSeries xyzSeries );
197
198
199     /**
200      *
201      */

202     public abstract JRBarPlot getBarPlot(JRBarPlot barPlot);
203
204     /**
205      *
206      */

207     public abstract JRBar3DPlot getBar3DPlot( JRBar3DPlot barPlot );
208
209
210     /**
211      *
212      */

213     public abstract JRLinePlot getLinePlot( JRLinePlot linePlot );
214
215
216     /**
217      *
218      */

219     public abstract JRAreaPlot getAreaPlot( JRAreaPlot areaPlot );
220
221
222     /**
223      *
224      */

225     public abstract JRBubblePlot getBubblePlot( JRBubblePlot bubblePlot );
226
227
228     /**
229      *
230      */

231     public abstract JRCandlestickPlot getCandlestickPlot(JRCandlestickPlot candlestickPlot);
232
233
234     /**
235      *
236      */

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