KickJava   Java API By Example, From Geeks To Geeks.

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


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
31 /**
32  * A component of an image map.
33  *
34  * @author Lucian Chirita (lucianc@users.sourceforge.net)
35  * @version $Id: JRPrintImageAreaHyperlink.java 1364 2006-08-31 18:13:20 +0300 (Thu, 31 Aug 2006) lucianc $
36  * @see JRImageMapRenderer
37  */

38 public class JRPrintImageAreaHyperlink
39 {
40
41     private JRPrintImageArea area;
42     private JRPrintHyperlink hyperlink;
43
44     
45     /**
46      * Creates a blank image area.
47      */

48     public JRPrintImageAreaHyperlink()
49     {
50     }
51
52     
53     /**
54      * Creates an image area by specifying its attributes.
55      *
56      * @param area the area
57      * @param hyperlink the hyperlink information
58      */

59     public JRPrintImageAreaHyperlink(JRPrintImageArea area, JRPrintHyperlink hyperlink)
60     {
61         this.area = area;
62         this.hyperlink = hyperlink;
63     }
64
65     
66     /**
67      * Returns the area of the image map component.
68      *
69      * @return the area of the image map component
70      */

71     public JRPrintImageArea getArea()
72     {
73         return area;
74     }
75     
76     
77     /**
78      * Sets the area of the image map component.
79      *
80      * @param area the area
81      */

82     public void setArea(JRPrintImageArea area)
83     {
84         this.area = area;
85     }
86     
87     
88     /**
89      * Returns the hyperlink information of the image map component.
90      *
91      * @return the hyperlink information of the image map component
92      */

93     public JRPrintHyperlink getHyperlink()
94     {
95         return hyperlink;
96     }
97     
98     
99     /**
100      * Sets the hyperlink information of the image map component.
101      *
102      * @param hyperlink the hyperlink information
103      */

104     public void setHyperlink(JRPrintHyperlink hyperlink)
105     {
106         this.hyperlink = hyperlink;
107     }
108     
109 }
110
Popular Tags