KickJava   Java API By Example, From Geeks To Geeks.

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


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.awt.Color JavaDoc;
31
32
33 /**
34  * This is useful for drawing borders around text elements and images. Boxes can have borders and paddings, which can
35  * have different width and colour on each side of the element.
36  * @author Teodor Danciu (teodord@users.sourceforge.net)
37  * @version $Id: JRBox.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
38  */

39 public interface JRBox extends JRStyleContainer
40 {
41
42
43     /**
44      * Gets the default border pen size (can be overwritten by individual settings).
45      */

46     public byte getBorder();
47
48     public Byte JavaDoc getOwnBorder();
49
50     /**
51      * Sets the default border pen size (can be overwritten by individual settings).
52      */

53     public void setBorder(byte border);
54
55     public void setBorder(Byte JavaDoc border);
56
57
58     /**
59      * Gets the default border color (can be overwritten by individual settings).
60      */

61     public Color JavaDoc getBorderColor();
62
63     public Color JavaDoc getOwnBorderColor();
64
65     /**
66      * Sets the default border color (can be overwritten by individual settings).
67      */

68     public void setBorderColor(Color JavaDoc color);
69
70
71     /**
72      * Gets the default padding in pixels (can be overwritten by individual settings).
73      */

74     public int getPadding();
75
76     public Integer JavaDoc getOwnPadding();
77
78     /**
79      * Sets the default padding in pixels (can be overwritten by individual settings).
80      */

81     public void setPadding(int padding);
82
83     public void setPadding(Integer JavaDoc padding);
84
85     
86     /**
87      * Gets the top border pen size.
88      */

89     public byte getTopBorder();
90
91
92     /**
93      * Gets the top border pen size (if the default value was overwritten).
94      */

95     public Byte JavaDoc getOwnTopBorder();
96     
97
98     /**
99      * Sets the top border pen size.
100      */

101     public void setTopBorder(byte border);
102
103     public void setTopBorder(Byte JavaDoc border);
104
105
106     /**
107      * Gets the top border color.
108      */

109     public Color JavaDoc getTopBorderColor();
110
111
112     /**
113      * Gets the top border color (if the default value was overwritten).
114      */

115     public Color JavaDoc getOwnTopBorderColor();
116
117
118     /**
119      * Sets the top border color.
120      */

121     public void setTopBorderColor(Color JavaDoc color);
122
123
124     /**
125      *
126      */

127     public int getTopPadding();
128
129
130     /**
131      *
132      */

133     public Integer JavaDoc getOwnTopPadding();
134
135
136     /**
137      *
138      */

139     public void setTopPadding(int padding);
140
141     public void setTopPadding(Integer JavaDoc padding);
142
143     
144     /**
145      *
146      */

147     public byte getLeftBorder();
148
149
150     /**
151      *
152      */

153     public Byte JavaDoc getOwnLeftBorder();
154
155
156     /**
157      *
158      */

159     public void setLeftBorder(byte border);
160
161     public void setLeftBorder(Byte JavaDoc border);
162
163
164     /**
165      *
166      */

167     public Color JavaDoc getLeftBorderColor();
168
169
170     /**
171      *
172      */

173     public Color JavaDoc getOwnLeftBorderColor();
174
175
176     /**
177      *
178      */

179     public void setLeftBorderColor(Color JavaDoc color);
180
181
182     /**
183      *
184      */

185     public int getLeftPadding();
186
187
188     /**
189      *
190      */

191     public Integer JavaDoc getOwnLeftPadding();
192
193
194     /**
195      *
196      */

197     public void setLeftPadding(int padding);
198
199     public void setLeftPadding(Integer JavaDoc padding);
200
201     
202     /**
203      *
204      */

205     public byte getBottomBorder();
206
207
208     /**
209      *
210      */

211     public Byte JavaDoc getOwnBottomBorder();
212
213
214     /**
215      *
216      */

217     public void setBottomBorder(byte border);
218
219     public void setBottomBorder(Byte JavaDoc border);
220
221
222     /**
223      *
224      */

225     public Color JavaDoc getBottomBorderColor();
226
227
228     /**
229      *
230      */

231     public Color JavaDoc getOwnBottomBorderColor();
232
233
234     /**
235      *
236      */

237     public void setBottomBorderColor(Color JavaDoc color);
238
239
240     /**
241      *
242      */

243     public int getBottomPadding();
244
245
246     /**
247      *
248      */

249     public Integer JavaDoc getOwnBottomPadding();
250
251
252     /**
253      *
254      */

255     public void setBottomPadding(int padding);
256
257     public void setBottomPadding(Integer JavaDoc padding);
258
259     
260     /**
261      *
262      */

263     public byte getRightBorder();
264
265
266     /**
267      *
268      */

269     public Byte JavaDoc getOwnRightBorder();
270
271
272     /**
273      *
274      */

275     public void setRightBorder(byte border);
276
277     public void setRightBorder(Byte JavaDoc border);
278
279
280     /**
281      *
282      */

283     public Color JavaDoc getRightBorderColor();
284
285
286     /**
287      *
288      */

289     public Color JavaDoc getOwnRightBorderColor();
290
291
292     /**
293      *
294      */

295     public void setRightBorderColor(Color JavaDoc color);
296
297
298     /**
299      *
300      */

301     public int getRightPadding();
302
303
304     /**
305      *
306      */

307     public Integer JavaDoc getOwnRightPadding();
308
309
310     /**
311      *
312      */

313     public void setRightPadding(int padding);
314
315     public void setRightPadding(Integer JavaDoc padding);
316
317     
318 }
319
Popular Tags