KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > jasperreports > engine > base > JRBaseStyle


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.base;
29
30 import java.awt.Color JavaDoc;
31 import java.io.Serializable JavaDoc;
32
33 import net.sf.jasperreports.engine.JRAbstractObjectFactory;
34 import net.sf.jasperreports.engine.JRConditionalStyle;
35 import net.sf.jasperreports.engine.JRDefaultStyleProvider;
36 import net.sf.jasperreports.engine.JRStyle;
37 import net.sf.jasperreports.engine.util.JRStyleResolver;
38
39 /**
40  * @author Ionut Nedelcu (ionutned@users.sourceforge.net)
41  * @version $Id: JRBaseStyle.java 1304 2006-06-20 09:51:24 +0300 (Tue, 20 Jun 2006) teodord $
42  */

43 public class JRBaseStyle implements JRStyle, Serializable JavaDoc
44 {
45
46     /**
47      *
48      */

49     private static final long serialVersionUID = 10001;
50
51
52     /**
53      *
54      */

55     protected JRDefaultStyleProvider defaultStyleProvider = null;
56     protected JRStyle parentStyle = null;
57
58     /**
59      *
60      */

61     protected String JavaDoc name = null;
62     protected boolean isDefault = false;
63
64     protected Byte JavaDoc positionType = null;
65     protected Byte JavaDoc stretchType = null;
66     protected Byte JavaDoc mode = null;
67     protected Color JavaDoc forecolor = null;
68     protected Color JavaDoc backcolor = null;
69
70     protected Byte JavaDoc pen = null;
71     protected Byte JavaDoc fill = null;
72
73     protected Integer JavaDoc radius = null;
74
75     protected Byte JavaDoc scaleImage = null;
76     protected Byte JavaDoc horizontalAlignment = null;
77     protected Byte JavaDoc verticalAlignment = null;
78
79     protected Byte JavaDoc border = null;
80     protected Byte JavaDoc topBorder = null;
81     protected Byte JavaDoc leftBorder = null;
82     protected Byte JavaDoc bottomBorder = null;
83     protected Byte JavaDoc rightBorder = null;
84     protected Color JavaDoc borderColor = null;
85     protected Color JavaDoc topBorderColor = null;
86     protected Color JavaDoc leftBorderColor = null;
87     protected Color JavaDoc bottomBorderColor = null;
88     protected Color JavaDoc rightBorderColor = null;
89     protected Integer JavaDoc padding = null;
90     protected Integer JavaDoc topPadding = null;
91     protected Integer JavaDoc leftPadding = null;
92     protected Integer JavaDoc bottomPadding = null;
93     protected Integer JavaDoc rightPadding = null;
94
95     protected String JavaDoc fontName = null;
96     protected Boolean JavaDoc isBold = null;
97     protected Boolean JavaDoc isItalic = null;
98     protected Boolean JavaDoc isUnderline = null;
99     protected Boolean JavaDoc isStrikeThrough = null;
100     protected Integer JavaDoc fontSize = null;
101     protected String JavaDoc pdfFontName = null;
102     protected String JavaDoc pdfEncoding = null;
103     protected Boolean JavaDoc isPdfEmbedded = null;
104
105     protected Byte JavaDoc rotation = null;
106     protected Byte JavaDoc lineSpacing = null;
107     protected Boolean JavaDoc isStyledText = null;
108
109     protected String JavaDoc pattern = null;
110     protected Boolean JavaDoc isBlankWhenNull = null;
111
112     protected JRConditionalStyle[] conditionalStyles;
113
114
115     /**
116      *
117      */

118     public JRBaseStyle()
119     {
120     }
121
122     /**
123      *
124      */

125     public JRBaseStyle(String JavaDoc name)
126     {
127         this.name = name;
128     }
129
130     /**
131      *
132      */

133     public JRBaseStyle(JRStyle style, JRAbstractObjectFactory factory)
134     {
135         name= style.getName();
136         parentStyle = factory.getStyle(style.getStyle());
137         isDefault = style.isDefault();
138
139         mode = style.getOwnMode();
140         forecolor = style.getOwnForecolor();
141         backcolor = style.getOwnBackcolor();
142
143         pen = style.getOwnPen();
144         fill = style.getOwnFill();
145
146         radius = style.getOwnRadius();
147
148         scaleImage = style.getOwnScaleImage();
149         horizontalAlignment = style.getOwnHorizontalAlignment();
150         verticalAlignment = style.getOwnVerticalAlignment();
151
152         border = style.getOwnBorder();
153         topBorder = style.getOwnTopBorder();
154         leftBorder = style.getOwnLeftBorder();
155         bottomBorder = style.getOwnBottomBorder();
156         rightBorder = style.getOwnRightBorder();
157         borderColor = style.getOwnBorderColor();
158         topBorderColor = style.getOwnTopBorderColor();
159         leftBorderColor = style.getOwnLeftBorderColor();
160         bottomBorderColor = style.getOwnBottomBorderColor();
161         rightBorderColor = style.getOwnRightBorderColor();
162         padding = style.getOwnPadding();
163         topPadding = style.getOwnTopPadding();
164         leftPadding = style.getOwnLeftPadding();
165         bottomPadding = style.getOwnBottomPadding();
166         rightPadding = style.getOwnRightPadding();
167
168         rotation = style.getOwnRotation();
169         lineSpacing = style.getOwnLineSpacing();
170         isStyledText = style.isOwnStyledText();
171
172         pattern = style.getOwnPattern();
173
174         fontName = style.getOwnFontName();
175         isBold = style.isOwnBold();
176         isItalic = style.isOwnItalic();
177         isUnderline = style.isOwnUnderline();
178         isStrikeThrough = style.isOwnStrikeThrough();
179         fontSize = style.getOwnFontSize();
180         pdfFontName = style.getOwnPdfFontName();
181         pdfEncoding = style.getOwnPdfEncoding();
182         isPdfEmbedded = style.isOwnPdfEmbedded();
183
184         JRConditionalStyle[] condStyles = style.getConditionalStyles();
185         if (condStyles != null && condStyles.length > 0) {
186             this.conditionalStyles = new JRConditionalStyle[condStyles.length];
187             for (int i = 0; i < condStyles.length; i++) {
188                 this.conditionalStyles[i] = factory.getConditionalStyle(condStyles[i], this);
189             }
190         }
191     }
192
193
194     /**
195      *
196      */

197     public JRDefaultStyleProvider getDefaultStyleProvider()
198     {
199         return defaultStyleProvider;
200     }
201
202     /**
203      *
204      */

205     public JRStyle getStyle()
206     {
207         return parentStyle;
208     }
209
210     /**
211      *
212      */

213     public String JavaDoc getName()
214     {
215         return name;
216     }
217
218     /**
219      *
220      */

221     public boolean isDefault()
222     {
223         return isDefault;
224     }
225
226     /**
227      *
228      */

229     public Color JavaDoc getForecolor()
230     {
231         return JRStyleResolver.getForecolor(this);
232     }
233
234     /**
235      *
236      */

237     public Color JavaDoc getOwnForecolor()
238     {
239         return forecolor;
240     }
241
242     public Color JavaDoc getBackcolor()
243     {
244         return JRStyleResolver.getBackcolor(this);
245     }
246
247     public Color JavaDoc getOwnBackcolor()
248     {
249         return backcolor;
250     }
251
252     public Byte JavaDoc getPen()
253     {
254         return JRStyleResolver.getPen(this);
255     }
256
257     public Byte JavaDoc getOwnPen()
258     {
259         return pen;
260     }
261
262     public Byte JavaDoc getFill()
263     {
264         return JRStyleResolver.getFill(this);
265     }
266
267     public Byte JavaDoc getOwnFill()
268     {
269         return fill;
270     }
271
272     public Integer JavaDoc getRadius()
273     {
274         return JRStyleResolver.getRadius(this);
275     }
276
277     public Integer JavaDoc getOwnRadius()
278     {
279         return radius;
280     }
281
282     public Byte JavaDoc getScaleImage()
283     {
284         return JRStyleResolver.getScaleImage(this);
285     }
286
287     public Byte JavaDoc getOwnScaleImage()
288     {
289         return scaleImage;
290     }
291
292     public Byte JavaDoc getHorizontalAlignment()
293     {
294         return JRStyleResolver.getHorizontalAlignment(this);
295     }
296
297     public Byte JavaDoc getOwnHorizontalAlignment()
298     {
299         return horizontalAlignment;
300     }
301
302     public Byte JavaDoc getVerticalAlignment()
303     {
304         return JRStyleResolver.getVerticalAlignment(this);
305     }
306
307     public Byte JavaDoc getOwnVerticalAlignment()
308     {
309         return verticalAlignment;
310     }
311
312     public Byte JavaDoc getBorder()
313     {
314         return JRStyleResolver.getBorder(this);
315     }
316
317     public Byte JavaDoc getOwnBorder()
318     {
319         return border;
320     }
321
322     public Color JavaDoc getBorderColor()
323     {
324         return JRStyleResolver.getBorderColor(this);
325     }
326
327     public Color JavaDoc getOwnBorderColor()
328     {
329         return borderColor;
330     }
331
332     public Integer JavaDoc getPadding()
333     {
334         return JRStyleResolver.getPadding(this);
335     }
336
337     public Integer JavaDoc getOwnPadding()
338     {
339         return padding;
340     }
341
342     public Byte JavaDoc getTopBorder()
343     {
344         return JRStyleResolver.getTopBorder(this);
345     }
346
347     public Byte JavaDoc getOwnTopBorder()
348     {
349         return topBorder;
350     }
351
352     public Color JavaDoc getTopBorderColor()
353     {
354         return JRStyleResolver.getTopBorderColor(this);
355     }
356
357     public Color JavaDoc getOwnTopBorderColor()
358     {
359         return topBorderColor;
360     }
361
362     public Integer JavaDoc getTopPadding()
363     {
364         return JRStyleResolver.getTopPadding(this);
365     }
366
367     public Integer JavaDoc getOwnTopPadding()
368     {
369         return topPadding;
370     }
371
372     public Byte JavaDoc getLeftBorder()
373     {
374         return JRStyleResolver.getLeftBorder(this);
375     }
376
377     public Byte JavaDoc getOwnLeftBorder()
378     {
379         return leftBorder;
380     }
381
382     public Color JavaDoc getLeftBorderColor()
383     {
384         return JRStyleResolver.getLeftBorderColor(this);
385     }
386
387     public Color JavaDoc getOwnLeftBorderColor()
388     {
389         return leftBorderColor;
390     }
391
392     public Integer JavaDoc getLeftPadding()
393     {
394         return JRStyleResolver.getLeftPadding(this);
395     }
396
397     public Integer JavaDoc getOwnLeftPadding()
398     {
399         return leftPadding;
400     }
401
402     public Byte JavaDoc getBottomBorder()
403     {
404         return JRStyleResolver.getBottomBorder(this);
405     }
406
407     public Byte JavaDoc getOwnBottomBorder()
408     {
409         return bottomBorder;
410     }
411
412     public Color JavaDoc getBottomBorderColor()
413     {
414         return JRStyleResolver.getBottomBorderColor(this);
415     }
416
417     public Color JavaDoc getOwnBottomBorderColor()
418     {
419         return bottomBorderColor;
420     }
421
422     public Integer JavaDoc getBottomPadding()
423     {
424         return JRStyleResolver.getBottomPadding(this);
425     }
426
427     public Integer JavaDoc getOwnBottomPadding()
428     {
429         return bottomPadding;
430     }
431
432     public Byte JavaDoc getRightBorder()
433     {
434         return JRStyleResolver.getRightBorder(this);
435     }
436
437     public Byte JavaDoc getOwnRightBorder()
438     {
439         return rightBorder;
440     }
441
442     public Color JavaDoc getRightBorderColor()
443     {
444         return JRStyleResolver.getRightBorderColor(this);
445     }
446
447     public Color JavaDoc getOwnRightBorderColor()
448     {
449         return rightBorderColor;
450     }
451
452     public Integer JavaDoc getRightPadding()
453     {
454         return JRStyleResolver.getRightPadding(this);
455     }
456
457     public Integer JavaDoc getOwnRightPadding()
458     {
459         return rightPadding;
460     }
461
462     public Byte JavaDoc getRotation()
463     {
464         return JRStyleResolver.getRotation(this);
465     }
466
467     public Byte JavaDoc getOwnRotation()
468     {
469         return rotation;
470     }
471
472     public Byte JavaDoc getLineSpacing()
473     {
474         return JRStyleResolver.getLineSpacing(this);
475     }
476
477     public Byte JavaDoc getOwnLineSpacing()
478     {
479         return lineSpacing;
480     }
481
482     public Boolean JavaDoc isStyledText()
483     {
484         return JRStyleResolver.isStyledText(this);
485     }
486
487     public Boolean JavaDoc isOwnStyledText()
488     {
489         return isStyledText;
490     }
491
492     public Boolean JavaDoc isBlankWhenNull()
493     {
494         return JRStyleResolver.isBlankWhenNull(this);
495     }
496
497     public Boolean JavaDoc isOwnBlankWhenNull()
498     {
499         return isStyledText;
500     }
501
502
503     public String JavaDoc getFontName()
504     {
505         return JRStyleResolver.getFontName(this);
506     }
507
508     public String JavaDoc getOwnFontName()
509     {
510         return fontName;
511     }
512
513     public Boolean JavaDoc isBold()
514     {
515         return JRStyleResolver.isBold(this);
516     }
517
518     public Boolean JavaDoc isOwnBold()
519     {
520         return isBold;
521     }
522
523     public Boolean JavaDoc isItalic()
524     {
525         return JRStyleResolver.isItalic(this);
526     }
527
528     public Boolean JavaDoc isOwnItalic()
529     {
530         return isItalic;
531     }
532
533     public Boolean JavaDoc isUnderline()
534     {
535         return JRStyleResolver.isUnderline(this);
536     }
537
538     public Boolean JavaDoc isOwnUnderline()
539     {
540         return isUnderline;
541     }
542
543     public Boolean JavaDoc isStrikeThrough()
544     {
545         return JRStyleResolver.isStrikeThrough(this);
546     }
547
548     public Boolean JavaDoc isOwnStrikeThrough()
549     {
550         return isStrikeThrough;
551     }
552
553     public Integer JavaDoc getFontSize()
554     {
555         return JRStyleResolver.getFontSize(this);
556     }
557
558     public Integer JavaDoc getOwnFontSize()
559     {
560         return fontSize;
561     }
562
563     public String JavaDoc getPdfFontName()
564     {
565         return JRStyleResolver.getPdfFontName(this);
566     }
567
568     public String JavaDoc getOwnPdfFontName()
569     {
570         return pdfFontName;
571     }
572
573     public String JavaDoc getPdfEncoding()
574     {
575         return JRStyleResolver.getPdfEncoding(this);
576     }
577
578     public String JavaDoc getOwnPdfEncoding()
579     {
580         return pdfEncoding;
581     }
582
583     public Boolean JavaDoc isPdfEmbedded()
584     {
585         return JRStyleResolver.isPdfEmbedded(this);
586     }
587
588     public Boolean JavaDoc isOwnPdfEmbedded()
589     {
590         return isPdfEmbedded;
591     }
592
593     public String JavaDoc getPattern()
594     {
595         return JRStyleResolver.getPattern(this);
596     }
597
598     public String JavaDoc getOwnPattern()
599     {
600         return pattern;
601     }
602
603     public Byte JavaDoc getMode()
604     {
605         return JRStyleResolver.getMode(this);
606     }
607
608     public Byte JavaDoc getOwnMode()
609     {
610         return mode;
611     }
612
613     /**
614      *
615      */

616     public void setForecolor(Color JavaDoc forecolor)
617     {
618         this.forecolor = forecolor;
619     }
620
621     /**
622      *
623      */

624     public void setBackcolor(Color JavaDoc backcolor)
625     {
626         this.backcolor = backcolor;
627     }
628
629     /**
630      *
631      */

632     public void setMode(byte mode)
633     {
634         setMode(new Byte JavaDoc(mode));
635     }
636
637     /**
638      *
639      */

640     public void setMode(Byte JavaDoc mode)
641     {
642         this.mode = mode;
643     }
644
645     /**
646      *
647      */

648     public void setPen(byte pen)
649     {
650         setPen(new Byte JavaDoc(pen));
651     }
652
653     /**
654      *
655      */

656     public void setPen(Byte JavaDoc pen)
657     {
658         this.pen = pen;
659     }
660
661     /**
662      *
663      */

664     public void setFill(byte fill)
665     {
666         setFill(new Byte JavaDoc(fill));
667     }
668
669     /**
670      *
671      */

672     public void setFill(Byte JavaDoc fill)
673     {
674         this.fill = fill;
675     }
676
677     /**
678      *
679      */

680     public void setRadius(int radius)
681     {
682         setRadius(new Integer JavaDoc(radius));
683     }
684
685     /**
686      *
687      */

688     public void setRadius(Integer JavaDoc radius)
689     {
690         this.radius = radius;
691     }
692
693     /**
694      *
695      */

696     public void setScaleImage(byte scaleImage)
697     {
698         setScaleImage(new Byte JavaDoc(scaleImage));
699     }
700
701     /**
702      *
703      */

704     public void setScaleImage(Byte JavaDoc scaleImage)
705     {
706         this.scaleImage = scaleImage;
707     }
708
709     /**
710      *
711      */

712     public void setHorizontalAlignment(byte horizontalAlignment)
713     {
714         setHorizontalAlignment(new Byte JavaDoc(horizontalAlignment));
715     }
716
717     /**
718      *
719      */

720     public void setHorizontalAlignment(Byte JavaDoc horizontalAlignment)
721     {
722         this.horizontalAlignment = horizontalAlignment;
723     }
724
725     /**
726      *
727      */

728     public void setVerticalAlignment(byte verticalAlignment)
729     {
730         setVerticalAlignment(new Byte JavaDoc(verticalAlignment));
731     }
732
733     /**
734      *
735      */

736     public void setVerticalAlignment(Byte JavaDoc verticalAlignment)
737     {
738         this.verticalAlignment = verticalAlignment;
739     }
740
741     /**
742      *
743      */

744     public void setBorder(byte border)
745     {
746         setBorder(new Byte JavaDoc(border));
747     }
748
749     /**
750      *
751      */

752     public void setBorder(Byte JavaDoc border)
753     {
754         this.border = border;
755     }
756
757     /**
758      *
759      */

760     public void setBorderColor(Color JavaDoc borderColor)
761     {
762         this.borderColor = borderColor;
763     }
764
765     /**
766      *
767      */

768     public void setPadding(int padding)
769     {
770         setPadding(new Integer JavaDoc(padding));
771     }
772
773     /**
774      *
775      */

776     public void setPadding(Integer JavaDoc padding)
777     {
778         this.padding = padding;
779     }
780
781     /**
782      *
783      */

784     public void setTopBorder(byte topBorder)
785     {
786         setTopBorder(new Byte JavaDoc(topBorder));
787     }
788
789     /**
790      *
791      */

792     public void setTopBorder(Byte JavaDoc topBorder)
793     {
794         this.topBorder = topBorder;
795     }
796
797     /**
798      *
799      */

800     public void setTopBorderColor(Color JavaDoc topBorderColor)
801     {
802         this.topBorderColor = topBorderColor;
803     }
804
805     /**
806      *
807      */

808     public void setTopPadding(int topPadding)
809     {
810         setTopPadding(new Integer JavaDoc(topPadding));
811     }
812
813     /**
814      *
815      */

816     public void setTopPadding(Integer JavaDoc topPadding)
817     {
818         this.topPadding = topPadding;
819     }
820
821     /**
822      *
823      */

824     public void setLeftBorder(byte leftBorder)
825     {
826         setLeftBorder(new Byte JavaDoc(leftBorder));
827     }
828
829     /**
830      *
831      */

832     public void setLeftBorder(Byte JavaDoc leftBorder)
833     {
834         this.leftBorder = leftBorder;
835     }
836
837     /**
838      *
839      */

840     public void setLeftBorderColor(Color JavaDoc leftBorderColor)
841     {
842         this.leftBorderColor = leftBorderColor;
843     }
844
845     /**
846      *
847      */

848     public void setLeftPadding(int leftPadding)
849     {
850         setLeftPadding(new Integer JavaDoc(leftPadding));
851     }
852
853     /**
854      *
855      */

856     public void setLeftPadding(Integer JavaDoc leftPadding)
857     {
858         this.leftPadding = leftPadding;
859     }
860
861     /**
862      *
863      */

864     public void setBottomBorder(byte bottomBorder)
865     {
866         setBottomBorder(new Byte JavaDoc(bottomBorder));
867     }
868
869     /**
870      *
871      */

872     public void setBottomBorder(Byte JavaDoc bottomBorder)
873     {
874         this.bottomBorder = bottomBorder;
875     }
876
877     /**
878      *
879      */

880     public void setBottomBorderColor(Color JavaDoc bottomBorderColor)
881     {
882         this.bottomBorderColor = bottomBorderColor;
883     }
884
885     /**
886      *
887      */

888     public void setBottomPadding(int bottomPadding)
889     {
890         setBottomPadding(new Integer JavaDoc(bottomPadding));
891     }
892
893     /**
894      *
895      */

896     public void setBottomPadding(Integer JavaDoc bottomPadding)
897     {
898         this.bottomPadding = bottomPadding;
899     }
900
901     /**
902      *
903      */

904     public void setRightBorder(byte rightBorder)
905     {
906         setRightBorder(new Byte JavaDoc(rightBorder));
907     }
908
909     /**
910      *
911      */

912     public void setRightBorder(Byte JavaDoc rightBorder)
913     {
914         this.rightBorder = rightBorder;
915     }
916
917     /**
918      *
919      */

920     public void setRightBorderColor(Color JavaDoc rightBorderColor)
921     {
922         this.rightBorderColor = rightBorderColor;
923     }
924
925     /**
926      *
927      */

928     public void setRightPadding(int rightPadding)
929     {
930         setRightPadding(new Integer JavaDoc(rightPadding));
931     }
932
933     /**
934      *
935      */

936     public void setRightPadding(Integer JavaDoc rightPadding)
937     {
938         this.rightPadding = rightPadding;
939     }
940
941     /**
942      *
943      */

944     public void setRotation(byte rotation)
945     {
946         setRotation(new Byte JavaDoc(rotation));
947     }
948
949     /**
950      *
951      */

952     public void setRotation(Byte JavaDoc rotation)
953     {
954         this.rotation = rotation;
955     }
956
957     /**
958      *
959      */

960     public void setFontName(String JavaDoc fontName)
961     {
962         this.fontName = fontName;
963     }
964
965     /**
966      *
967      */

968     public void setBold(boolean bold)
969     {
970         setBold(bold ? Boolean.TRUE : Boolean.FALSE);
971     }
972
973     /**
974      *
975      */

976     public void setBold(Boolean JavaDoc bold)
977     {
978         this.isBold = bold;
979     }
980
981     /**
982      *
983      */

984     public void setItalic(boolean italic)
985     {
986         setItalic(italic ? Boolean.TRUE : Boolean.FALSE);
987     }
988
989     /**
990      *
991      */

992     public void setItalic(Boolean JavaDoc italic)
993     {
994         this.isItalic = italic;
995     }
996
997     /**
998      *
999      */

1000    public void setPdfEmbedded(boolean pdfEmbedded)
1001    {
1002        setPdfEmbedded(pdfEmbedded ? Boolean.TRUE : Boolean.FALSE);
1003    }
1004
1005    /**
1006     *
1007     */

1008    public void setPdfEmbedded(Boolean JavaDoc pdfEmbedded)
1009    {
1010        this.isPdfEmbedded = pdfEmbedded;
1011    }
1012
1013    /**
1014     *
1015     */

1016    public void setStrikeThrough(boolean strikeThrough)
1017    {
1018        setStrikeThrough(strikeThrough ? Boolean.TRUE : Boolean.FALSE);
1019    }
1020
1021    /**
1022     *
1023     */

1024    public void setStrikeThrough(Boolean JavaDoc strikeThrough)
1025    {
1026        this.isStrikeThrough = strikeThrough;
1027    }
1028
1029    /**
1030     *
1031     */

1032    public void setStyledText(boolean styledText)
1033    {
1034        setStyledText(styledText ? Boolean.TRUE : Boolean.FALSE);
1035    }
1036
1037    /**
1038     *
1039     */

1040    public void setStyledText(Boolean JavaDoc styledText)
1041    {
1042        this.isStyledText = styledText;
1043    }
1044
1045    /**
1046     *
1047     */

1048    public void setBlankWhenNull(boolean isBlankWhenNull)
1049    {
1050        setBlankWhenNull(isBlankWhenNull ? Boolean.TRUE : Boolean.FALSE);
1051    }
1052
1053    /**
1054     *
1055     */

1056    public void setBlankWhenNull(Boolean JavaDoc isBlankWhenNull)
1057    {
1058        this.isBlankWhenNull = isBlankWhenNull;
1059    }
1060
1061    /**
1062     *
1063     */

1064    public void setUnderline(boolean underline)
1065    {
1066        setUnderline(underline ? Boolean.TRUE : Boolean.FALSE);
1067    }
1068
1069    /**
1070     *
1071     */

1072    public void setUnderline(Boolean JavaDoc underline)
1073    {
1074        this.isUnderline = underline;
1075    }
1076
1077    /**
1078     *
1079     */

1080    public void setLineSpacing(byte lineSpacing)
1081    {
1082        setLineSpacing(new Byte JavaDoc(lineSpacing));
1083    }
1084
1085    /**
1086     *
1087     */

1088    public void setLineSpacing(Byte JavaDoc lineSpacing)
1089    {
1090        this.lineSpacing = lineSpacing;
1091    }
1092
1093    /**
1094     *
1095     */

1096    public void setPattern(String JavaDoc pattern)
1097    {
1098        this.pattern = pattern;
1099    }
1100
1101    /**
1102     *
1103     */

1104    public void setPdfEncoding(String JavaDoc pdfEncoding)
1105    {
1106        this.pdfEncoding = pdfEncoding;
1107    }
1108
1109    /**
1110     *
1111     */

1112    public void setPdfFontName(String JavaDoc pdfFontName)
1113    {
1114        this.pdfFontName = pdfFontName;
1115    }
1116
1117    /**
1118     *
1119     */

1120    public void setFontSize(int fontSize)
1121    {
1122        setFontSize(new Integer JavaDoc(fontSize));
1123    }
1124
1125    /**
1126     *
1127     */

1128    public void setFontSize(Integer JavaDoc fontSize)
1129    {
1130        this.fontSize = fontSize;
1131    }
1132
1133    /**
1134     *
1135     */

1136    public JRConditionalStyle[] getConditionalStyles()
1137    {
1138        return conditionalStyles;
1139    }
1140}
1141
Popular Tags