KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > jasperreports > engine > design > JRDesignTextElement


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.design;
29
30 import java.awt.Color JavaDoc;
31
32 import net.sf.jasperreports.engine.JRBox;
33 import net.sf.jasperreports.engine.JRConstants;
34 import net.sf.jasperreports.engine.JRDefaultStyleProvider;
35 import net.sf.jasperreports.engine.JRFont;
36 import net.sf.jasperreports.engine.JRReportFont;
37 import net.sf.jasperreports.engine.JRStyle;
38 import net.sf.jasperreports.engine.JRTextElement;
39 import net.sf.jasperreports.engine.util.JRStyleResolver;
40
41
42 /**
43  * This class provides functionality common to design text elements. It provides implementation for the methods described
44  * in <tt>JRTextElement</tt> and setters for text element attributes that can only be modified at design time.
45  *
46  * @author Teodor Danciu (teodord@users.sourceforge.net)
47  * @version $Id: JRDesignTextElement.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
48  */

49 public abstract class JRDesignTextElement extends JRDesignElement implements JRTextElement
50 {
51
52
53     /**
54      *
55      */

56     private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID;
57
58     /**
59      *
60      */

61     protected Byte JavaDoc horizontalAlignment;
62     protected Byte JavaDoc verticalAlignment;
63     protected Byte JavaDoc rotation;
64     protected Byte JavaDoc lineSpacing;
65     protected Boolean JavaDoc isStyledText;
66
67     /**
68      *
69      */

70     protected Byte JavaDoc border;
71     protected Byte JavaDoc topBorder = null;
72     protected Byte JavaDoc leftBorder = null;
73     protected Byte JavaDoc bottomBorder = null;
74     protected Byte JavaDoc rightBorder = null;
75     protected Color JavaDoc borderColor = null;
76     protected Color JavaDoc topBorderColor = null;
77     protected Color JavaDoc leftBorderColor = null;
78     protected Color JavaDoc bottomBorderColor = null;
79     protected Color JavaDoc rightBorderColor = null;
80     protected Integer JavaDoc padding;
81     protected Integer JavaDoc topPadding = null;
82     protected Integer JavaDoc leftPadding = null;
83     protected Integer JavaDoc bottomPadding = null;
84     protected Integer JavaDoc rightPadding = null;
85
86     protected JRReportFont reportFont = null;
87     protected String JavaDoc fontName = null;
88     protected Boolean JavaDoc isBold = null;
89     protected Boolean JavaDoc isItalic = null;
90     protected Boolean JavaDoc isUnderline = null;
91     protected Boolean JavaDoc isStrikeThrough = null;
92     protected Integer JavaDoc fontSize = null;
93     protected String JavaDoc pdfFontName = null;
94     protected String JavaDoc pdfEncoding = null;
95     protected Boolean JavaDoc isPdfEmbedded = null;
96
97
98     /**
99      * Creates a new text element.
100      */

101     protected JRDesignTextElement(JRDefaultStyleProvider defaultStyleProvider)
102     {
103         super(defaultStyleProvider);
104     }
105
106
107     /**
108      *
109      */

110     protected JRFont getBaseFont()
111     {
112         if (reportFont != null)
113             return reportFont;
114         if (defaultStyleProvider != null)
115             return defaultStyleProvider.getDefaultFont();
116         return null;
117     }
118
119
120     /**
121      *
122      */

123     public byte getMode()
124     {
125         return JRStyleResolver.getMode(this, MODE_TRANSPARENT);
126     }
127
128
129     /**
130      * @deprecated Replaced by {@link #getHorizontalAlignment()}.
131      */

132     public byte getTextAlignment()
133     {
134         if (horizontalAlignment == null) {
135             JRStyle style = getBaseStyle();
136             if (style != null && style.getHorizontalAlignment() != null)
137                 return style.getHorizontalAlignment().byteValue();
138             return HORIZONTAL_ALIGN_LEFT;
139         }
140         return horizontalAlignment.byteValue();
141     }
142
143     /**
144      * @deprecated Replaced by {@link #setHorizontalAlignment(byte)}.
145      */

146     public void setTextAlignment(byte horizontalAlignment)
147     {
148         this.horizontalAlignment = new Byte JavaDoc(horizontalAlignment);
149     }
150
151     /**
152      *
153      */

154     public byte getHorizontalAlignment()
155     {
156         return JRStyleResolver.getHorizontalAlignment(this);
157     }
158
159     public Byte JavaDoc getOwnHorizontalAlignment()
160     {
161         return horizontalAlignment;
162     }
163
164     /**
165      *
166      */

167     public void setHorizontalAlignment(byte horizontalAlignment)
168     {
169         this.horizontalAlignment = new Byte JavaDoc(horizontalAlignment);
170     }
171
172     /**
173      *
174      */

175     public void setHorizontalAlignment(Byte JavaDoc horizontalAlignment)
176     {
177         this.horizontalAlignment = horizontalAlignment;
178     }
179
180     /**
181      *
182      */

183     public byte getVerticalAlignment()
184     {
185         return JRStyleResolver.getVerticalAlignment(this);
186     }
187
188     public Byte JavaDoc getOwnVerticalAlignment()
189     {
190         return verticalAlignment;
191     }
192
193     /**
194      *
195      */

196     public void setVerticalAlignment(byte verticalAlignment)
197     {
198         this.verticalAlignment = new Byte JavaDoc(verticalAlignment);
199     }
200
201     /**
202      *
203      */

204     public void setVerticalAlignment(Byte JavaDoc verticalAlignment)
205     {
206         this.verticalAlignment = verticalAlignment;
207     }
208
209     /**
210      *
211      */

212     public byte getRotation()
213     {
214         return JRStyleResolver.getRotation(this);
215     }
216
217     public Byte JavaDoc getOwnRotation()
218     {
219         return rotation;
220     }
221
222     /**
223      *
224      */

225     public void setRotation(byte rotation)
226     {
227         this.rotation = new Byte JavaDoc(rotation);
228     }
229
230     /**
231      *
232      */

233     public void setRotation(Byte JavaDoc rotation)
234     {
235         this.rotation = rotation;
236     }
237
238     /**
239      *
240      */

241     public byte getLineSpacing()
242     {
243         return JRStyleResolver.getLineSpacing(this);
244     }
245
246     public Byte JavaDoc getOwnLineSpacing()
247     {
248         return lineSpacing;
249     }
250
251     /**
252      *
253      */

254     public void setLineSpacing(byte lineSpacing)
255     {
256         this.lineSpacing = new Byte JavaDoc(lineSpacing);
257     }
258
259     /**
260      *
261      */

262     public void setLineSpacing(Byte JavaDoc lineSpacing)
263     {
264         this.lineSpacing = lineSpacing;
265     }
266
267     /**
268      *
269      */

270     public boolean isStyledText()
271     {
272         return JRStyleResolver.isStyledText(this);
273     }
274
275     public Boolean JavaDoc isOwnStyledText()
276     {
277         return isStyledText;
278     }
279
280     /**
281      *
282      */

283     public void setStyledText(boolean isStyledText)
284     {
285         setStyledText(isStyledText ? Boolean.TRUE : Boolean.FALSE);
286     }
287
288     /**
289      *
290      */

291     public void setStyledText(Boolean JavaDoc isStyledText)
292     {
293         this.isStyledText = isStyledText;
294     }
295
296     /**
297      * @deprecated
298      */

299     public JRBox getBox()
300     {
301         return this;
302     }
303
304     /**
305      * @deprecated
306      */

307     public JRFont getFont()
308     {
309         return this;
310     }
311
312
313     /**
314      * @deprecated
315      */

316     public void setBox(JRBox box)
317     {
318         border = box.getOwnBorder();
319         topBorder = box.getOwnTopBorder();
320         leftBorder = box.getOwnLeftBorder();
321         bottomBorder = box.getOwnBottomBorder();
322         rightBorder = box.getOwnRightBorder();
323         borderColor = box.getOwnBorderColor();
324         topBorderColor = box.getOwnTopBorderColor();
325         leftBorderColor = box.getOwnLeftBorderColor();
326         bottomBorderColor = box.getOwnBottomBorderColor();
327         rightBorderColor = box.getOwnRightBorderColor();
328         padding = box.getOwnPadding();
329         topPadding = box.getOwnTopPadding();
330         leftPadding = box.getOwnLeftPadding();
331         bottomPadding = box.getOwnBottomPadding();
332         rightPadding = box.getOwnRightPadding();
333     }
334
335     /**
336      * Sets a <tt>JRFont</tt> object containing all font properties for this text element
337      * @deprecated
338      */

339     public void setFont(JRFont font)
340     {
341         reportFont = font.getReportFont();
342         
343         fontName = font.getOwnFontName();
344         isBold = font.isOwnBold();
345         isItalic = font.isOwnItalic();
346         isUnderline = font.isOwnUnderline();
347         isStrikeThrough = font.isOwnStrikeThrough();
348         fontSize = font.getOwnSize();
349         pdfFontName = font.getOwnPdfFontName();
350         pdfEncoding = font.getOwnPdfEncoding();
351         isPdfEmbedded = font.isOwnPdfEmbedded();
352     }
353
354     /**
355      *
356      */

357     public byte getBorder()
358     {
359         return JRStyleResolver.getBorder(this);
360     }
361
362     public Byte JavaDoc getOwnBorder()
363     {
364         return border;
365     }
366
367     /**
368      *
369      */

370     public void setBorder(byte border)
371     {
372         this.border = new Byte JavaDoc(border);
373     }
374
375     /**
376      *
377      */

378     public Color JavaDoc getBorderColor()
379     {
380         return JRStyleResolver.getBorderColor(this, getForecolor());
381     }
382
383     public Color JavaDoc getOwnBorderColor()
384     {
385         return borderColor;
386     }
387
388     /**
389      *
390      */

391     public void setBorderColor(Color JavaDoc borderColor)
392     {
393         this.borderColor = borderColor;
394     }
395
396     /**
397      *
398      */

399     public int getPadding()
400     {
401         return JRStyleResolver.getPadding(this);
402     }
403
404     public Integer JavaDoc getOwnPadding()
405     {
406         return padding;
407     }
408
409     /**
410      *
411      */

412     public void setPadding(int padding)
413     {
414         this.padding = new Integer JavaDoc(padding);
415     }
416
417     /**
418      *
419      */

420     public byte getTopBorder()
421     {
422         return JRStyleResolver.getTopBorder(this);
423     }
424
425     /**
426      *
427      */

428     public Byte JavaDoc getOwnTopBorder()
429     {
430         return topBorder;
431     }
432
433     /**
434      *
435      */

436     public void setTopBorder(byte topBorder)
437     {
438         this.topBorder = new Byte JavaDoc(topBorder);
439     }
440
441     /**
442      *
443      */

444     public Color JavaDoc getTopBorderColor()
445     {
446         return JRStyleResolver.getTopBorderColor(this, getForecolor());
447     }
448
449     /**
450      *
451      */

452     public Color JavaDoc getOwnTopBorderColor()
453     {
454         return topBorderColor;
455     }
456
457     /**
458      *
459      */

460     public void setTopBorderColor(Color JavaDoc topBorderColor)
461     {
462         this.topBorderColor = topBorderColor;
463     }
464
465     /**
466      *
467      */

468     public int getTopPadding()
469     {
470         return JRStyleResolver.getTopPadding(this);
471     }
472
473     /**
474      *
475      */

476     public Integer JavaDoc getOwnTopPadding()
477     {
478         return topPadding;
479     }
480
481     /**
482      *
483      */

484     public void setTopPadding(int topPadding)
485     {
486         this.topPadding = new Integer JavaDoc(topPadding);
487     }
488
489     /**
490      *
491      */

492     public byte getLeftBorder()
493     {
494         return JRStyleResolver.getLeftBorder(this);
495     }
496
497     /**
498      *
499      */

500     public Byte JavaDoc getOwnLeftBorder()
501     {
502         return leftBorder;
503     }
504
505     /**
506      *
507      */

508     public void setLeftBorder(byte leftBorder)
509     {
510         this.leftBorder = new Byte JavaDoc(leftBorder);
511     }
512
513     /**
514      *
515      */

516     public Color JavaDoc getLeftBorderColor()
517     {
518         return JRStyleResolver.getLeftBorderColor(this, getForecolor());
519     }
520
521     /**
522      *
523      */

524     public Color JavaDoc getOwnLeftBorderColor()
525     {
526         return leftBorderColor;
527     }
528
529     /**
530      *
531      */

532     public void setLeftBorderColor(Color JavaDoc leftBorderColor)
533     {
534         this.leftBorderColor = leftBorderColor;
535     }
536
537     /**
538      *
539      */

540     public int getLeftPadding()
541     {
542         return JRStyleResolver.getLeftPadding(this);
543     }
544
545     /**
546      *
547      */

548     public Integer JavaDoc getOwnLeftPadding()
549     {
550         return leftPadding;
551     }
552
553     /**
554      *
555      */

556     public void setLeftPadding(int leftPadding)
557     {
558         this.leftPadding = new Integer JavaDoc(leftPadding);
559     }
560
561     /**
562      *
563      */

564     public byte getBottomBorder()
565     {
566         return JRStyleResolver.getBottomBorder(this);
567     }
568
569     /**
570      *
571      */

572     public Byte JavaDoc getOwnBottomBorder()
573     {
574         return bottomBorder;
575     }
576
577     /**
578      *
579      */

580     public void setBottomBorder(byte bottomBorder)
581     {
582         this.bottomBorder = new Byte JavaDoc(bottomBorder);
583     }
584
585     /**
586      *
587      */

588     public Color JavaDoc getBottomBorderColor()
589     {
590         return JRStyleResolver.getBottomBorderColor(this, getForecolor());
591     }
592
593     /**
594      *
595      */

596     public Color JavaDoc getOwnBottomBorderColor()
597     {
598         return bottomBorderColor;
599     }
600
601     /**
602      *
603      */

604     public void setBottomBorderColor(Color JavaDoc bottomBorderColor)
605     {
606         this.bottomBorderColor = bottomBorderColor;
607     }
608
609     /**
610      *
611      */

612     public int getBottomPadding()
613     {
614         return JRStyleResolver.getBottomPadding(this);
615     }
616
617     /**
618      *
619      */

620     public Integer JavaDoc getOwnBottomPadding()
621     {
622         return bottomPadding;
623     }
624
625     /**
626      *
627      */

628     public void setBottomPadding(int bottomPadding)
629     {
630         this.bottomPadding = new Integer JavaDoc(bottomPadding);
631     }
632
633     /**
634      *
635      */

636     public byte getRightBorder()
637     {
638         return JRStyleResolver.getRightBorder(this);
639     }
640
641     /**
642      *
643      */

644     public Byte JavaDoc getOwnRightBorder()
645     {
646         return rightBorder;
647     }
648
649     /**
650      *
651      */

652     public void setRightBorder(byte rightBorder)
653     {
654         this.rightBorder = new Byte JavaDoc(rightBorder);
655     }
656
657     /**
658      *
659      */

660     public Color JavaDoc getRightBorderColor()
661     {
662         return JRStyleResolver.getRightBorderColor(this, getForecolor());
663     }
664
665     /**
666      *
667      */

668     public Color JavaDoc getOwnRightBorderColor()
669     {
670         return rightBorderColor;
671     }
672
673     /**
674      *
675      */

676     public void setRightBorderColor(Color JavaDoc rightBorderColor)
677     {
678         this.rightBorderColor = rightBorderColor;
679     }
680
681     /**
682      *
683      */

684     public int getRightPadding()
685     {
686         return JRStyleResolver.getRightPadding(this);
687     }
688
689     /**
690      *
691      */

692     public Integer JavaDoc getOwnRightPadding()
693     {
694         return rightPadding;
695     }
696
697     /**
698      *
699      */

700     public void setRightPadding(int rightPadding)
701     {
702         this.rightPadding = new Integer JavaDoc(rightPadding);
703     }
704
705     /**
706      *
707      */

708     public JRReportFont getReportFont()
709     {
710         return reportFont;
711     }
712
713     /**
714      *
715      */

716     public void setReportFont(JRReportFont reportFont)
717     {
718         this.reportFont = reportFont;
719     }
720
721     /**
722      *
723      */

724     public String JavaDoc getFontName()
725     {
726         return JRStyleResolver.getFontName(this);
727     }
728
729     /**
730      *
731      */

732     public String JavaDoc getOwnFontName()
733     {
734         return fontName;
735     }
736
737     /**
738      *
739      */

740     public void setFontName(String JavaDoc fontName)
741     {
742         this.fontName = fontName;
743     }
744
745
746     /**
747      *
748      */

749     public boolean isBold()
750     {
751         return JRStyleResolver.isBold(this);
752     }
753
754     /**
755      *
756      */

757     public Boolean JavaDoc isOwnBold()
758     {
759         return isBold;
760     }
761
762     /**
763      *
764      */

765     public void setBold(boolean isBold)
766     {
767         setBold(isBold ? Boolean.TRUE : Boolean.FALSE);
768     }
769
770     /**
771      * Alternative setBold method which allows also to reset
772      * the "own" isBold property.
773      */

774     public void setBold(Boolean JavaDoc isBold)
775     {
776         this.isBold = isBold;
777     }
778
779
780     /**
781      *
782      */

783     public boolean isItalic()
784     {
785         return JRStyleResolver.isItalic(this);
786     }
787
788     /**
789      *
790      */

791     public Boolean JavaDoc isOwnItalic()
792     {
793         return isItalic;
794     }
795
796     /**
797      *
798      */

799     public void setItalic(boolean isItalic)
800     {
801         setItalic(isItalic ? Boolean.TRUE : Boolean.FALSE);
802     }
803
804     /**
805      * Alternative setItalic method which allows also to reset
806      * the "own" isItalic property.
807      */

808     public void setItalic(Boolean JavaDoc isItalic)
809     {
810         this.isItalic = isItalic;
811     }
812
813     /**
814      *
815      */

816     public boolean isUnderline()
817     {
818         return JRStyleResolver.isUnderline(this);
819     }
820
821     /**
822      *
823      */

824     public Boolean JavaDoc isOwnUnderline()
825     {
826         return isUnderline;
827     }
828
829     /**
830      *
831      */

832     public void setUnderline(boolean isUnderline)
833     {
834         setUnderline(isUnderline ? Boolean.TRUE : Boolean.FALSE);
835     }
836
837     /**
838      * Alternative setUnderline method which allows also to reset
839      * the "own" isUnderline property.
840      */

841     public void setUnderline(Boolean JavaDoc isUnderline)
842     {
843         this.isUnderline = isUnderline;
844     }
845
846     /**
847      *
848      */

849     public boolean isStrikeThrough()
850     {
851         return JRStyleResolver.isStrikeThrough(this);
852     }
853
854     /**
855      *
856      */

857     public Boolean JavaDoc isOwnStrikeThrough()
858     {
859         return isStrikeThrough;
860     }
861
862     /**
863      *
864      */

865     public void setStrikeThrough(boolean isStrikeThrough)
866     {
867         setStrikeThrough(isStrikeThrough ? Boolean.TRUE : Boolean.FALSE);
868     }
869
870     /**
871      * Alternative setStrikeThrough method which allows also to reset
872      * the "own" isStrikeThrough property.
873      */

874     public void setStrikeThrough(Boolean JavaDoc isStrikeThrough)
875     {
876         this.isStrikeThrough = isStrikeThrough;
877     }
878
879     /**
880      *
881      */

882     public int getFontSize()
883     {
884         return JRStyleResolver.getFontSize(this);
885     }
886
887     /**
888      *
889      */

890     public Integer JavaDoc getOwnFontSize()
891     {
892         return fontSize;
893     }
894
895     /**
896      *
897      */

898     public void setFontSize(int fontSize)
899     {
900         setFontSize(new Integer JavaDoc(fontSize));
901     }
902
903     /**
904      * Alternative setFontSize method which allows also to reset
905      * the "own" size property.
906      */

907     public void setFontSize(Integer JavaDoc fontSize)
908     {
909         this.fontSize = fontSize;
910     }
911
912     /**
913      * @deprecated Replaced by {@link #getFontSize()}.
914      */

915     public int getSize()
916     {
917         return getFontSize();
918     }
919
920     /**
921      * @deprecated Replaced by {@link #getOwnFontSize()}.
922      */

923     public Integer JavaDoc getOwnSize()
924     {
925         return getOwnFontSize();
926     }
927
928     /**
929      * @deprecated Replaced by {@link #setFontSize(int)}.
930      */

931     public void setSize(int size)
932     {
933         setFontSize(size);
934     }
935
936     /**
937      * @deprecated Replaced by {@link #setFontSize(Integer)}.
938      */

939     public void setSize(Integer JavaDoc size)
940     {
941         setFontSize(size);
942     }
943
944     /**
945      *
946      */

947     public String JavaDoc getPdfFontName()
948     {
949         return JRStyleResolver.getPdfFontName(this);
950     }
951
952     /**
953      *
954      */

955     public String JavaDoc getOwnPdfFontName()
956     {
957         return pdfFontName;
958     }
959
960     /**
961      *
962      */

963     public void setPdfFontName(String JavaDoc pdfFontName)
964     {
965         this.pdfFontName = pdfFontName;
966     }
967
968
969     /**
970      *
971      */

972     public String JavaDoc getPdfEncoding()
973     {
974         return JRStyleResolver.getPdfEncoding(this);
975     }
976
977     /**
978      *
979      */

980     public String JavaDoc getOwnPdfEncoding()
981     {
982         return pdfEncoding;
983     }
984
985     /**
986      *
987      */

988     public void setPdfEncoding(String JavaDoc pdfEncoding)
989     {
990         this.pdfEncoding = pdfEncoding;
991     }
992
993
994     /**
995      *
996      */

997     public boolean isPdfEmbedded()
998     {
999         return JRStyleResolver.isPdfEmbedded(this);
1000    }
1001
1002    /**
1003     *
1004     */

1005    public Boolean JavaDoc isOwnPdfEmbedded()
1006    {
1007        return isPdfEmbedded;
1008    }
1009
1010    /**
1011     *
1012     */

1013    public void setPdfEmbedded(boolean isPdfEmbedded)
1014    {
1015        setPdfEmbedded(isPdfEmbedded ? Boolean.TRUE : Boolean.FALSE);
1016    }
1017
1018    /**
1019     * Alternative setPdfEmbedded method which allows also to reset
1020     * the "own" isPdfEmbedded property.
1021     */

1022    public void setPdfEmbedded(Boolean JavaDoc isPdfEmbedded)
1023    {
1024        this.isPdfEmbedded = isPdfEmbedded;
1025    }
1026
1027    /**
1028     *
1029     */

1030    public void setBorder(Byte JavaDoc border)
1031    {
1032        this.border = border;
1033    }
1034
1035    /**
1036     *
1037     */

1038    public void setPadding(Integer JavaDoc padding)
1039    {
1040        this.padding = padding;
1041    }
1042
1043    /**
1044     *
1045     */

1046    public void setTopBorder(Byte JavaDoc topBorder)
1047    {
1048        this.topBorder = topBorder;
1049    }
1050
1051    /**
1052     *
1053     */

1054    public void setTopPadding(Integer JavaDoc topPadding)
1055    {
1056        this.topPadding = topPadding;
1057    }
1058
1059    /**
1060     *
1061     */

1062    public void setLeftBorder(Byte JavaDoc leftBorder)
1063    {
1064        this.leftBorder = leftBorder;
1065    }
1066
1067    /**
1068     *
1069     */

1070    public void setLeftPadding(Integer JavaDoc leftPadding)
1071    {
1072        this.leftPadding = leftPadding;
1073    }
1074
1075    /**
1076     *
1077     */

1078    public void setBottomBorder(Byte JavaDoc bottomBorder)
1079    {
1080        this.bottomBorder = bottomBorder;
1081    }
1082
1083    /**
1084     *
1085     */

1086    public void setBottomPadding(Integer JavaDoc bottomPadding)
1087    {
1088        this.bottomPadding = bottomPadding;
1089    }
1090
1091    /**
1092     *
1093     */

1094    public void setRightBorder(Byte JavaDoc rightBorder)
1095    {
1096        this.rightBorder = rightBorder;
1097    }
1098
1099    /**
1100     *
1101     */

1102    public void setRightPadding(Integer JavaDoc rightPadding)
1103    {
1104        this.rightPadding = rightPadding;
1105    }
1106
1107
1108}
1109
Popular Tags