KickJava   Java API By Example, From Geeks To Geeks.

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


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
32 import net.sf.jasperreports.engine.JRAnchor;
33 import net.sf.jasperreports.engine.JRBox;
34 import net.sf.jasperreports.engine.JRConstants;
35 import net.sf.jasperreports.engine.JRPrintHyperlinkParameters;
36 import net.sf.jasperreports.engine.JRPrintImage;
37 import net.sf.jasperreports.engine.JRRenderable;
38
39
40 /**
41  * @author Teodor Danciu (teodord@users.sourceforge.net)
42  * @version $Id: JRTemplatePrintImage.java 1364 2006-08-31 18:13:20 +0300 (Thu, 31 Aug 2006) lucianc $
43  */

44 public class JRTemplatePrintImage extends JRTemplatePrintGraphicElement implements JRPrintImage
45 {
46
47
48     /**
49      *
50      */

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

56     private JRRenderable renderer = null;
57     private String JavaDoc anchorName = null;
58     private String JavaDoc hyperlinkReference = null;
59     private String JavaDoc hyperlinkAnchor = null;
60     private Integer JavaDoc hyperlinkPage = null;
61     private String JavaDoc hyperlinkTooltip;
62     private JRPrintHyperlinkParameters hyperlinkParameters;
63
64     /**
65      * The bookmark level for the anchor associated with this field.
66      * @see JRAnchor#getBookmarkLevel()
67      */

68     protected int bookmarkLevel = JRAnchor.NO_BOOKMARK;
69
70
71     /**
72      *
73      */

74     public JRTemplatePrintImage(JRTemplateImage image)
75     {
76         super(image);
77     }
78
79     /**
80      *
81      */

82     public JRRenderable getRenderer()
83     {
84         return this.renderer;
85     }
86         
87     /**
88      *
89      */

90     public void setRenderer(JRRenderable renderer)
91     {
92         this.renderer = renderer;
93     }
94         
95     /**
96      *
97      */

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

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

114     public void setScaleImage(byte scaleImage)
115     {
116     }
117
118     /**
119      *
120      */

121     public void setScaleImage(Byte JavaDoc scaleImage)
122     {
123     }
124
125     /**
126      *
127      */

128     public byte getHorizontalAlignment()
129     {
130         return ((JRTemplateImage)this.template).getHorizontalAlignment();
131     }
132         
133     /**
134      *
135      */

136     public Byte JavaDoc getOwnHorizontalAlignment()
137     {
138         return ((JRTemplateImage)this.template).getOwnHorizontalAlignment();
139     }
140         
141     /**
142      *
143      */

144     public void setHorizontalAlignment(byte horizontalAlignment)
145     {
146     }
147         
148     /**
149      *
150      */

151     public void setHorizontalAlignment(Byte JavaDoc horizontalAlignment)
152     {
153     }
154         
155     /**
156      *
157      */

158     public byte getVerticalAlignment()
159     {
160         return ((JRTemplateImage)this.template).getVerticalAlignment();
161     }
162         
163     /**
164      *
165      */

166     public Byte JavaDoc getOwnVerticalAlignment()
167     {
168         return ((JRTemplateImage)this.template).getOwnVerticalAlignment();
169     }
170         
171     /**
172      *
173      */

174     public void setVerticalAlignment(byte verticalAlignment)
175     {
176     }
177         
178     /**
179      *
180      */

181     public void setVerticalAlignment(Byte JavaDoc verticalAlignment)
182     {
183     }
184         
185     /**
186      *
187      */

188     public boolean isLazy()
189     {
190         return ((JRTemplateImage)this.template).isLazy();
191     }
192
193     /**
194      *
195      */

196     public void setLazy(boolean isLazy)
197     {
198     }
199
200     /**
201      *
202      */

203     public byte getOnErrorType()
204     {
205         return ((JRTemplateImage)this.template).getOnErrorType();
206     }
207
208     /**
209      *
210      */

211     public void setOnErrorType(byte onErrorType)
212     {
213     }
214
215     /**
216      * @deprecated
217      */

218     public JRBox getBox()
219     {
220         return ((JRTemplateImage)template).getBox();
221     }
222         
223     /**
224      * @deprecated
225      */

226     public void setBox(JRBox box)
227     {
228     }
229
230     /**
231      *
232      */

233     public String JavaDoc getAnchorName()
234     {
235         return this.anchorName;
236     }
237         
238     /**
239      *
240      */

241     public void setAnchorName(String JavaDoc anchorName)
242     {
243         this.anchorName = anchorName;
244     }
245         
246     /**
247      *
248      */

249     public byte getHyperlinkType()
250     {
251         return ((JRTemplateImage)this.template).getHyperlinkType();
252     }
253         
254     /**
255      *
256      */

257     public void setHyperlinkType(byte hyperlinkType)
258     {
259     }
260
261     /**
262      *
263      */

264     public byte getHyperlinkTarget()
265     {
266         return ((JRTemplateImage)this.template).getHyperlinkTarget();
267     }
268         
269     /**
270      *
271      */

272     public void setHyperlinkTarget(byte hyperlinkTarget)
273     {
274     }
275
276     /**
277      *
278      */

279     public String JavaDoc getHyperlinkReference()
280     {
281         return this.hyperlinkReference;
282     }
283         
284     /**
285      *
286      */

287     public void setHyperlinkReference(String JavaDoc hyperlinkReference)
288     {
289         this.hyperlinkReference = hyperlinkReference;
290     }
291         
292     /**
293      *
294      */

295     public String JavaDoc getHyperlinkAnchor()
296     {
297         return this.hyperlinkAnchor;
298     }
299         
300     /**
301      *
302      */

303     public void setHyperlinkAnchor(String JavaDoc hyperlinkAnchor)
304     {
305         this.hyperlinkAnchor = hyperlinkAnchor;
306     }
307         
308     /**
309      *
310      */

311     public Integer JavaDoc getHyperlinkPage()
312     {
313         return this.hyperlinkPage;
314     }
315         
316     /**
317      *
318      */

319     public void setHyperlinkPage(Integer JavaDoc hyperlinkPage)
320     {
321         this.hyperlinkPage = hyperlinkPage;
322     }
323
324
325     public int getBookmarkLevel()
326     {
327         return bookmarkLevel;
328     }
329
330
331     public void setBookmarkLevel(int bookmarkLevel)
332     {
333         this.bookmarkLevel = bookmarkLevel;
334     }
335     
336
337     /**
338      *
339      */

340     public byte getBorder()
341     {
342         return ((JRTemplateImage)template).getBorder();
343     }
344
345     public Byte JavaDoc getOwnBorder()
346     {
347         return ((JRTemplateImage)template).getOwnBorder();
348     }
349
350     /**
351      *
352      */

353     public void setBorder(byte border)
354     {
355     }
356
357     /**
358      *
359      */

360     public Color JavaDoc getBorderColor()
361     {
362         return ((JRTemplateImage)template).getBorderColor();
363     }
364
365     public Color JavaDoc getOwnBorderColor()
366     {
367         return ((JRTemplateImage)template).getOwnBorderColor();
368     }
369
370     /**
371      *
372      */

373     public void setBorderColor(Color JavaDoc borderColor)
374     {
375     }
376
377     /**
378      *
379      */

380     public int getPadding()
381     {
382         return ((JRTemplateImage)template).getPadding();
383     }
384
385     public Integer JavaDoc getOwnPadding()
386     {
387         return ((JRTemplateImage)template).getOwnPadding();
388     }
389
390     /**
391      *
392      */

393     public void setPadding(int padding)
394     {
395     }
396
397     /**
398      *
399      */

400     public byte getTopBorder()
401     {
402         return ((JRTemplateImage)template).getTopBorder();
403     }
404
405     /**
406      *
407      */

408     public Byte JavaDoc getOwnTopBorder()
409     {
410         return ((JRTemplateImage)template).getOwnTopBorder();
411     }
412
413     /**
414      *
415      */

416     public void setTopBorder(byte topBorder)
417     {
418     }
419
420     /**
421      *
422      */

423     public Color JavaDoc getTopBorderColor()
424     {
425         return ((JRTemplateImage)template).getTopBorderColor();
426     }
427
428     /**
429      *
430      */

431     public Color JavaDoc getOwnTopBorderColor()
432     {
433         return ((JRTemplateImage)template).getOwnTopBorderColor();
434     }
435
436     /**
437      *
438      */

439     public void setTopBorderColor(Color JavaDoc topBorderColor)
440     {
441     }
442
443     /**
444      *
445      */

446     public int getTopPadding()
447     {
448         return ((JRTemplateImage)template).getTopPadding();
449     }
450
451     /**
452      *
453      */

454     public Integer JavaDoc getOwnTopPadding()
455     {
456         return ((JRTemplateImage)template).getOwnTopPadding();
457     }
458
459     /**
460      *
461      */

462     public void setTopPadding(int topPadding)
463     {
464     }
465
466     /**
467      *
468      */

469     public byte getLeftBorder()
470     {
471         return ((JRTemplateImage)template).getLeftBorder();
472     }
473
474     /**
475      *
476      */

477     public Byte JavaDoc getOwnLeftBorder()
478     {
479         return ((JRTemplateImage)template).getOwnLeftBorder();
480     }
481
482     /**
483      *
484      */

485     public void setLeftBorder(byte leftBorder)
486     {
487     }
488
489     /**
490      *
491      */

492     public Color JavaDoc getLeftBorderColor()
493     {
494         return ((JRTemplateImage)template).getLeftBorderColor();
495     }
496
497     /**
498      *
499      */

500     public Color JavaDoc getOwnLeftBorderColor()
501     {
502         return ((JRTemplateImage)template).getOwnLeftBorderColor();
503     }
504
505     /**
506      *
507      */

508     public void setLeftBorderColor(Color JavaDoc leftBorderColor)
509     {
510     }
511
512     /**
513      *
514      */

515     public int getLeftPadding()
516     {
517         return ((JRTemplateImage)template).getLeftPadding();
518     }
519
520     /**
521      *
522      */

523     public Integer JavaDoc getOwnLeftPadding()
524     {
525         return ((JRTemplateImage)template).getOwnLeftPadding();
526     }
527
528     /**
529      *
530      */

531     public void setLeftPadding(int leftPadding)
532     {
533     }
534
535     /**
536      *
537      */

538     public byte getBottomBorder()
539     {
540         return ((JRTemplateImage)template).getBottomBorder();
541     }
542
543     /**
544      *
545      */

546     public Byte JavaDoc getOwnBottomBorder()
547     {
548         return ((JRTemplateImage)template).getOwnBottomBorder();
549     }
550
551     /**
552      *
553      */

554     public void setBottomBorder(byte bottomBorder)
555     {
556     }
557
558     /**
559      *
560      */

561     public Color JavaDoc getBottomBorderColor()
562     {
563         return ((JRTemplateImage)template).getBottomBorderColor();
564     }
565
566     /**
567      *
568      */

569     public Color JavaDoc getOwnBottomBorderColor()
570     {
571         return ((JRTemplateImage)template).getOwnBottomBorderColor();
572     }
573
574     /**
575      *
576      */

577     public void setBottomBorderColor(Color JavaDoc bottomBorderColor)
578     {
579     }
580
581     /**
582      *
583      */

584     public int getBottomPadding()
585     {
586         return ((JRTemplateImage)template).getBottomPadding();
587     }
588
589     /**
590      *
591      */

592     public Integer JavaDoc getOwnBottomPadding()
593     {
594         return ((JRTemplateImage)template).getOwnBottomPadding();
595     }
596
597     /**
598      *
599      */

600     public void setBottomPadding(int bottomPadding)
601     {
602     }
603
604     /**
605      *
606      */

607     public byte getRightBorder()
608     {
609         return ((JRTemplateImage)template).getRightBorder();
610     }
611
612     /**
613      *
614      */

615     public Byte JavaDoc getOwnRightBorder()
616     {
617         return ((JRTemplateImage)template).getOwnRightBorder();
618     }
619
620     /**
621      *
622      */

623     public void setRightBorder(byte rightBorder)
624     {
625     }
626
627     /**
628      *
629      */

630     public Color JavaDoc getRightBorderColor()
631     {
632         return ((JRTemplateImage)template).getRightBorderColor();
633     }
634
635     /**
636      *
637      */

638     public Color JavaDoc getOwnRightBorderColor()
639     {
640         return ((JRTemplateImage)template).getOwnRightBorderColor();
641     }
642
643     /**
644      *
645      */

646     public void setRightBorderColor(Color JavaDoc rightBorderColor)
647     {
648     }
649
650     /**
651      *
652      */

653     public int getRightPadding()
654     {
655         return ((JRTemplateImage)template).getRightPadding();
656     }
657
658     /**
659      *
660      */

661     public Integer JavaDoc getOwnRightPadding()
662     {
663         return ((JRTemplateImage)template).getOwnRightPadding();
664     }
665
666     /**
667      *
668      */

669     public void setRightPadding(int rightPadding)
670     {
671     }
672
673     /**
674      *
675      */

676     public void setBorder(Byte JavaDoc border)
677     {
678     }
679
680     /**
681      *
682      */

683     public void setPadding(Integer JavaDoc padding)
684     {
685     }
686
687     /**
688      *
689      */

690     public void setTopBorder(Byte JavaDoc topBorder)
691     {
692     }
693
694     /**
695      *
696      */

697     public void setTopPadding(Integer JavaDoc topPadding)
698     {
699     }
700
701     /**
702      *
703      */

704     public void setLeftBorder(Byte JavaDoc leftBorder)
705     {
706     }
707
708     /**
709      *
710      */

711     public void setLeftPadding(Integer JavaDoc leftPadding)
712     {
713     }
714
715     /**
716      *
717      */

718     public void setBottomBorder(Byte JavaDoc bottomBorder)
719     {
720     }
721
722     /**
723      *
724      */

725     public void setBottomPadding(Integer JavaDoc bottomPadding)
726     {
727     }
728
729     /**
730      *
731      */

732     public void setRightBorder(Byte JavaDoc rightBorder)
733     {
734     }
735
736     /**
737      *
738      */

739     public void setRightPadding(Integer JavaDoc rightPadding)
740     {
741     }
742
743     
744     public JRPrintHyperlinkParameters getHyperlinkParameters()
745     {
746         return hyperlinkParameters;
747     }
748
749     
750     public void setHyperlinkParameters(JRPrintHyperlinkParameters parameters)
751     {
752         this.hyperlinkParameters = parameters;
753     }
754
755     
756     public String JavaDoc getLinkType()
757     {
758         return ((JRTemplateImage) this.template).getLinkType();
759     }
760
761     public void setLinkType(String JavaDoc type)
762     {
763     }
764
765     
766     public String JavaDoc getHyperlinkTooltip()
767     {
768         return hyperlinkTooltip;
769     }
770
771     
772     public void setHyperlinkTooltip(String JavaDoc hyperlinkTooltip)
773     {
774         this.hyperlinkTooltip = hyperlinkTooltip;
775     }
776
777 }
778
Popular Tags