KickJava   Java API By Example, From Geeks To Geeks.

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


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.io.Serializable JavaDoc;
32
33 import net.sf.jasperreports.engine.JRConstants;
34 import net.sf.jasperreports.engine.JRDefaultStyleProvider;
35 import net.sf.jasperreports.engine.JRPrintElement;
36 import net.sf.jasperreports.engine.JRStyle;
37
38
39 /**
40  * @author Teodor Danciu (teodord@users.sourceforge.net)
41  * @version $Id: JRTemplatePrintElement.java 1471 2006-11-09 18:16:34 +0200 (Thu, 09 Nov 2006) lucianc $
42  */

43 public class JRTemplatePrintElement implements JRPrintElement, Serializable JavaDoc
44 {
45
46
47     /**
48      *
49      */

50     private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID;
51
52     /**
53      *
54      */

55     protected JRTemplateElement template = null;
56
57     private int x = 0;
58     private int y = 0;
59     private int height = 0;
60     private int width = 0;
61
62     
63     /**
64      *
65      */

66     protected JRTemplatePrintElement(JRTemplateElement element)
67     {
68         template = element;
69     }
70
71     /**
72      *
73      */

74     public JRDefaultStyleProvider getDefaultStyleProvider()
75     {
76         return template.getDefaultStyleProvider();
77     }
78     
79     /**
80      *
81      */

82     public JRStyle getStyle()
83     {
84         return template.getStyle();
85     }
86     
87     /**
88      *
89      */

90     public void setStyle(JRStyle style)
91     {
92     }
93     
94     /**
95      *
96      */

97     public byte getMode()
98     {
99         return this.template.getMode();
100     }
101     
102     /**
103      *
104      */

105     public Byte JavaDoc getOwnMode()
106     {
107         return this.template.getOwnMode();
108     }
109     
110     /**
111      *
112      */

113     public void setMode(byte mode)
114     {
115     }
116     
117     /**
118      *
119      */

120     public void setMode(Byte JavaDoc mode)
121     {
122     }
123     
124     /**
125      *
126      */

127     public int getX()
128     {
129         return this.x;
130     }
131     
132     /**
133      *
134      */

135     public void setX(int x)
136     {
137         this.x = x;
138     }
139     
140     /**
141      *
142      */

143     public int getY()
144     {
145         return this.y;
146     }
147     
148     /**
149      *
150      */

151     public void setY(int y)
152     {
153         this.y = y;
154     }
155     
156     /**
157      *
158      */

159     public int getWidth()
160     {
161         return this.width;
162     }
163     
164     /**
165      *
166      */

167     public void setWidth(int width)
168     {
169         this.width = width;
170     }
171     
172     /**
173      *
174      */

175     public int getHeight()
176     {
177         return this.height;
178     }
179     
180     /**
181      *
182      */

183     public void setHeight(int height)
184     {
185         this.height = height;
186     }
187     
188     /**
189      *
190      */

191     public Color JavaDoc getForecolor()
192     {
193         return this.template.getForecolor();
194     }
195     
196     /**
197      *
198      */

199     public Color JavaDoc getOwnForecolor()
200     {
201         return this.template.getOwnForecolor();
202     }
203     
204     /**
205      *
206      */

207     public void setForecolor(Color JavaDoc color)
208     {
209     }
210     
211     /**
212      *
213      */

214     public Color JavaDoc getBackcolor()
215     {
216         return this.template.getBackcolor();
217     }
218
219     /**
220      *
221      */

222     public Color JavaDoc getOwnBackcolor()
223     {
224         return this.template.getOwnBackcolor();
225     }
226
227     /**
228      *
229      */

230     public void setBackcolor(Color JavaDoc color)
231     {
232     }
233
234     
235     public JRTemplateElement getTemplate()
236     {
237         return template;
238     }
239
240     public void setTemplate(JRTemplateElement template)
241     {
242         this.template = template;
243     }
244
245     public String JavaDoc getKey()
246     {
247         return template.getKey();
248     }
249 }
250
Popular Tags