KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > jasperreports > engine > fill > JRTemplatePrintFrame


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.fill;
29
30 import java.awt.Color JavaDoc;
31 import java.util.ArrayList JavaDoc;
32 import java.util.List JavaDoc;
33
34 import net.sf.jasperreports.engine.JRConstants;
35 import net.sf.jasperreports.engine.JRPrintElement;
36 import net.sf.jasperreports.engine.JRPrintElementContainer;
37 import net.sf.jasperreports.engine.JRPrintFrame;
38
39 /**
40  * Implementation of {@link net.sf.jasperreports.engine.JRPrintFrame JRPrintFrame} that uses
41  * {@link net.sf.jasperreports.engine.fill.JRTemplateFrame template frames} for keeping common data.
42  *
43  * @author Lucian Chirita (lucianc@users.sourceforge.net)
44  * @version $Id: JRTemplatePrintFrame.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
45  */

46 public class JRTemplatePrintFrame extends JRTemplatePrintElement implements JRPrintFrame, JRPrintElementContainer
47 {
48     private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID;
49
50     protected JRTemplateFrame templateFrame;
51     private List JavaDoc elements;
52
53     protected JRTemplatePrintFrame(JRTemplateFrame templateFrame)
54     {
55         super(templateFrame);
56         
57         this.templateFrame = templateFrame;
58         elements = new ArrayList JavaDoc();
59     }
60
61     public List JavaDoc getElements()
62     {
63         return elements;
64     }
65
66     public void addElement(JRPrintElement element)
67     {
68         elements.add(element);
69     }
70
71     /**
72      *
73      */

74     public byte getBorder()
75     {
76         return templateFrame.getBorder();
77     }
78
79     public Byte JavaDoc getOwnBorder()
80     {
81         return templateFrame.getOwnBorder();
82     }
83
84     /**
85      *
86      */

87     public void setBorder(byte border)
88     {
89     }
90
91     /**
92      *
93      */

94     public Color JavaDoc getBorderColor()
95     {
96         return templateFrame.getBorderColor();
97     }
98
99     public Color JavaDoc getOwnBorderColor()
100     {
101         return templateFrame.getOwnBorderColor();
102     }
103
104     /**
105      *
106      */

107     public void setBorderColor(Color JavaDoc borderColor)
108     {
109     }
110
111     /**
112      *
113      */

114     public int getPadding()
115     {
116         return templateFrame.getPadding();
117     }
118
119     public Integer JavaDoc getOwnPadding()
120     {
121         return templateFrame.getOwnPadding();
122     }
123
124     /**
125      *
126      */

127     public void setPadding(int padding)
128     {
129     }
130
131     /**
132      *
133      */

134     public byte getTopBorder()
135     {
136         return templateFrame.getTopBorder();
137     }
138
139     /**
140      *
141      */

142     public Byte JavaDoc getOwnTopBorder()
143     {
144         return templateFrame.getOwnTopBorder();
145     }
146
147     /**
148      *
149      */

150     public void setTopBorder(byte topBorder)
151     {
152     }
153
154     /**
155      *
156      */

157     public Color JavaDoc getTopBorderColor()
158     {
159         return templateFrame.getTopBorderColor();
160     }
161
162     /**
163      *
164      */

165     public Color JavaDoc getOwnTopBorderColor()
166     {
167         return templateFrame.getOwnTopBorderColor();
168     }
169
170     /**
171      *
172      */

173     public void setTopBorderColor(Color JavaDoc topBorderColor)
174     {
175     }
176
177     /**
178      *
179      */

180     public int getTopPadding()
181     {
182         return templateFrame.getTopPadding();
183     }
184
185     /**
186      *
187      */

188     public Integer JavaDoc getOwnTopPadding()
189     {
190         return templateFrame.getOwnTopPadding();
191     }
192
193     /**
194      *
195      */

196     public void setTopPadding(int topPadding)
197     {
198     }
199
200     /**
201      *
202      */

203     public byte getLeftBorder()
204     {
205         return templateFrame.getLeftBorder();
206     }
207
208     /**
209      *
210      */

211     public Byte JavaDoc getOwnLeftBorder()
212     {
213         return templateFrame.getOwnLeftBorder();
214     }
215
216     /**
217      *
218      */

219     public void setLeftBorder(byte leftBorder)
220     {
221     }
222
223     /**
224      *
225      */

226     public Color JavaDoc getLeftBorderColor()
227     {
228         return templateFrame.getLeftBorderColor();
229     }
230
231     /**
232      *
233      */

234     public Color JavaDoc getOwnLeftBorderColor()
235     {
236         return templateFrame.getOwnLeftBorderColor();
237     }
238
239     /**
240      *
241      */

242     public void setLeftBorderColor(Color JavaDoc leftBorderColor)
243     {
244     }
245
246     /**
247      *
248      */

249     public int getLeftPadding()
250     {
251         return templateFrame.getLeftPadding();
252     }
253
254     /**
255      *
256      */

257     public Integer JavaDoc getOwnLeftPadding()
258     {
259         return templateFrame.getOwnLeftPadding();
260     }
261
262     /**
263      *
264      */

265     public void setLeftPadding(int leftPadding)
266     {
267     }
268
269     /**
270      *
271      */

272     public byte getBottomBorder()
273     {
274         return templateFrame.getBottomBorder();
275     }
276
277     /**
278      *
279      */

280     public Byte JavaDoc getOwnBottomBorder()
281     {
282         return templateFrame.getOwnBottomBorder();
283     }
284
285     /**
286      *
287      */

288     public void setBottomBorder(byte bottomBorder)
289     {
290     }
291
292     /**
293      *
294      */

295     public Color JavaDoc getBottomBorderColor()
296     {
297         return templateFrame.getBottomBorderColor();
298     }
299
300     /**
301      *
302      */

303     public Color JavaDoc getOwnBottomBorderColor()
304     {
305         return templateFrame.getOwnBottomBorderColor();
306     }
307
308     /**
309      *
310      */

311     public void setBottomBorderColor(Color JavaDoc bottomBorderColor)
312     {
313     }
314
315     /**
316      *
317      */

318     public int getBottomPadding()
319     {
320         return templateFrame.getBottomPadding();
321     }
322
323     /**
324      *
325      */

326     public Integer JavaDoc getOwnBottomPadding()
327     {
328         return templateFrame.getOwnBottomPadding();
329     }
330
331     /**
332      *
333      */

334     public void setBottomPadding(int bottomPadding)
335     {
336     }
337
338     /**
339      *
340      */

341     public byte getRightBorder()
342     {
343         return templateFrame.getRightBorder();
344     }
345
346     /**
347      *
348      */

349     public Byte JavaDoc getOwnRightBorder()
350     {
351         return templateFrame.getOwnRightBorder();
352     }
353
354     /**
355      *
356      */

357     public void setRightBorder(byte rightBorder)
358     {
359     }
360
361     /**
362      *
363      */

364     public Color JavaDoc getRightBorderColor()
365     {
366         return templateFrame.getRightBorderColor();
367     }
368
369     /**
370      *
371      */

372     public Color JavaDoc getOwnRightBorderColor()
373     {
374         return templateFrame.getOwnRightBorderColor();
375     }
376
377     /**
378      *
379      */

380     public void setRightBorderColor(Color JavaDoc rightBorderColor)
381     {
382     }
383
384     /**
385      *
386      */

387     public int getRightPadding()
388     {
389         return templateFrame.getRightPadding();
390     }
391
392     /**
393      *
394      */

395     public Integer JavaDoc getOwnRightPadding()
396     {
397         return templateFrame.getOwnRightPadding();
398     }
399
400     /**
401      *
402      */

403     public void setRightPadding(int rightPadding)
404     {
405     }
406
407     /**
408      *
409      */

410     public void setBorder(Byte JavaDoc border)
411     {
412     }
413
414     /**
415      *
416      */

417     public void setPadding(Integer JavaDoc padding)
418     {
419     }
420
421     /**
422      *
423      */

424     public void setTopBorder(Byte JavaDoc topBorder)
425     {
426     }
427
428     /**
429      *
430      */

431     public void setTopPadding(Integer JavaDoc topPadding)
432     {
433     }
434
435     /**
436      *
437      */

438     public void setLeftBorder(Byte JavaDoc leftBorder)
439     {
440     }
441
442     /**
443      *
444      */

445     public void setLeftPadding(Integer JavaDoc leftPadding)
446     {
447     }
448
449     /**
450      *
451      */

452     public void setBottomBorder(Byte JavaDoc bottomBorder)
453     {
454     }
455
456     /**
457      *
458      */

459     public void setBottomPadding(Integer JavaDoc bottomPadding)
460     {
461     }
462
463     /**
464      *
465      */

466     public void setRightBorder(Byte JavaDoc rightBorder)
467     {
468     }
469
470     /**
471      *
472      */

473     public void setRightPadding(Integer JavaDoc rightPadding)
474     {
475     }
476 }
477
Popular Tags