001: /*
002: * ============================================================================
003: * GNU Lesser General Public License
004: * ============================================================================
005: *
006: * JasperReports - Free Java report-generating library.
007: * Copyright (C) 2001-2006 JasperSoft Corporation http://www.jaspersoft.com
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2.1 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library; if not, write to the Free Software
021: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
022: *
023: * JasperSoft Corporation
024: * 303 Second Street, Suite 450 North
025: * San Francisco, CA 94107
026: * http://www.jaspersoft.com
027: */
028: package net.sf.jasperreports.engine;
029:
030: import java.awt.Color;
031:
032: /**
033: * This is useful for drawing borders around text elements and images. Boxes can have borders and paddings, which can
034: * have different width and colour on each side of the element.
035: * @author Teodor Danciu (teodord@users.sourceforge.net)
036: * @version $Id: JRBox.java 1759 2007-06-20 16:47:34Z lucianc $
037: */
038: public interface JRBox extends JRStyleContainer //FIXME why extend JRStyleContainer?
039: {
040:
041: /**
042: * Gets the default border pen size (can be overwritten by individual settings).
043: */
044: public byte getBorder();
045:
046: public Byte getOwnBorder();
047:
048: /**
049: * Sets the default border pen size (can be overwritten by individual settings).
050: */
051: public void setBorder(byte border);
052:
053: public void setBorder(Byte border);
054:
055: /**
056: * Gets the default border color (can be overwritten by individual settings).
057: */
058: public Color getBorderColor();
059:
060: public Color getOwnBorderColor();
061:
062: /**
063: * Sets the default border color (can be overwritten by individual settings).
064: */
065: public void setBorderColor(Color color);
066:
067: /**
068: * Gets the default padding in pixels (can be overwritten by individual settings).
069: */
070: public int getPadding();
071:
072: public Integer getOwnPadding();
073:
074: /**
075: * Sets the default padding in pixels (can be overwritten by individual settings).
076: */
077: public void setPadding(int padding);
078:
079: public void setPadding(Integer padding);
080:
081: /**
082: * Gets the top border pen size.
083: */
084: public byte getTopBorder();
085:
086: /**
087: * Gets the top border pen size (if the default value was overwritten).
088: */
089: public Byte getOwnTopBorder();
090:
091: /**
092: * Sets the top border pen size.
093: */
094: public void setTopBorder(byte border);
095:
096: public void setTopBorder(Byte border);
097:
098: /**
099: * Gets the top border color.
100: */
101: public Color getTopBorderColor();
102:
103: /**
104: * Gets the top border color (if the default value was overwritten).
105: */
106: public Color getOwnTopBorderColor();
107:
108: /**
109: * Sets the top border color.
110: */
111: public void setTopBorderColor(Color color);
112:
113: /**
114: *
115: */
116: public int getTopPadding();
117:
118: /**
119: *
120: */
121: public Integer getOwnTopPadding();
122:
123: /**
124: *
125: */
126: public void setTopPadding(int padding);
127:
128: public void setTopPadding(Integer padding);
129:
130: /**
131: *
132: */
133: public byte getLeftBorder();
134:
135: /**
136: *
137: */
138: public Byte getOwnLeftBorder();
139:
140: /**
141: *
142: */
143: public void setLeftBorder(byte border);
144:
145: public void setLeftBorder(Byte border);
146:
147: /**
148: *
149: */
150: public Color getLeftBorderColor();
151:
152: /**
153: *
154: */
155: public Color getOwnLeftBorderColor();
156:
157: /**
158: *
159: */
160: public void setLeftBorderColor(Color color);
161:
162: /**
163: *
164: */
165: public int getLeftPadding();
166:
167: /**
168: *
169: */
170: public Integer getOwnLeftPadding();
171:
172: /**
173: *
174: */
175: public void setLeftPadding(int padding);
176:
177: public void setLeftPadding(Integer padding);
178:
179: /**
180: *
181: */
182: public byte getBottomBorder();
183:
184: /**
185: *
186: */
187: public Byte getOwnBottomBorder();
188:
189: /**
190: *
191: */
192: public void setBottomBorder(byte border);
193:
194: public void setBottomBorder(Byte border);
195:
196: /**
197: *
198: */
199: public Color getBottomBorderColor();
200:
201: /**
202: *
203: */
204: public Color getOwnBottomBorderColor();
205:
206: /**
207: *
208: */
209: public void setBottomBorderColor(Color color);
210:
211: /**
212: *
213: */
214: public int getBottomPadding();
215:
216: /**
217: *
218: */
219: public Integer getOwnBottomPadding();
220:
221: /**
222: *
223: */
224: public void setBottomPadding(int padding);
225:
226: public void setBottomPadding(Integer padding);
227:
228: /**
229: *
230: */
231: public byte getRightBorder();
232:
233: /**
234: *
235: */
236: public Byte getOwnRightBorder();
237:
238: /**
239: *
240: */
241: public void setRightBorder(byte border);
242:
243: public void setRightBorder(Byte border);
244:
245: /**
246: *
247: */
248: public Color getRightBorderColor();
249:
250: /**
251: *
252: */
253: public Color getOwnRightBorderColor();
254:
255: /**
256: *
257: */
258: public void setRightBorderColor(Color color);
259:
260: /**
261: *
262: */
263: public int getRightPadding();
264:
265: /**
266: *
267: */
268: public Integer getOwnRightPadding();
269:
270: /**
271: *
272: */
273: public void setRightPadding(int padding);
274:
275: public void setRightPadding(Integer padding);
276:
277: }
|