KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > swixml > XGridBagConstraints


1 /*--
2  $Id: XGridBagConstraints.java,v 1.1 2004/03/01 07:56:08 wolfpaulus Exp $
3
4  Copyright (C) 2003-2004 Wolf Paulus.
5  All rights reserved.
6
7  Redistribution and use in source and binary forms, with or without
8  modification, are permitted provided that the following conditions
9  are met:
10
11  1. Redistributions of source code must retain the above copyright
12  notice, this list of conditions, and the following disclaimer.
13
14  2. Redistributions in binary form must reproduce the above copyright
15  notice, this list of conditions, and the disclaimer that follows
16  these conditions in the documentation and/or other materials provided
17  with the distribution.
18
19  3. The end-user documentation included with the redistribution,
20  if any, must include the following acknowledgment:
21         "This product includes software developed by the
22          SWIXML Project (http://www.swixml.org/)."
23  Alternately, this acknowledgment may appear in the software itself,
24  if and wherever such third-party acknowledgments normally appear.
25
26  4. The name "Swixml" must not be used to endorse or promote products
27  derived from this software without prior written permission. For
28  written permission, please contact <info_AT_swixml_DOT_org>
29
30  5. Products derived from this software may not be called "Swixml",
31  nor may "Swixml" appear in their name, without prior written
32  permission from the Swixml Project Management.
33
34  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
35  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
36  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37  DISCLAIMED. IN NO EVENT SHALL THE SWIXML PROJECT OR ITS
38  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
41  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
42  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
43  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
44  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45  SUCH DAMAGE.
46  ====================================================================
47
48  This software consists of voluntary contributions made by many
49  individuals on behalf of the Swixml Project and was originally
50  created by Wolf Paulus <wolf_AT_swixml_DOT_org>. For more information
51  on the Swixml Project, please see <http://www.swixml.org/>.
52 */

53 package org.swixml;
54
55 import java.awt.*;
56
57 /**
58  * <code>XGridBagConstraints</code> simple extends <code>GridBagConstraints</code> to
59  * make bean style getters and setters available for all public fields in the GridBagConstraints class.
60  *
61  * @author <a HREF="mailto:wolf@paulus.com">Wolf Paulus</a>
62  * @version $Revision: 1.1 $
63  */

64 public class XGridBagConstraints extends GridBagConstraints {
65
66   public int getAnchor() {
67     return anchor;
68   }
69
70   public void setAnchor(int anchor) {
71     this.anchor = anchor;
72   }
73
74   public int getFill() {
75     return fill;
76   }
77
78   public void setFill(int fill) {
79     this.fill = fill;
80   }
81
82   public int getGridheight() {
83     return gridheight;
84   }
85
86   public void setGridheight(int gridheight) {
87     this.gridheight = gridheight;
88   }
89
90   public int getGridwidth() {
91     return gridwidth;
92   }
93
94   public void setGridwidth(int gridwidth) {
95     this.gridwidth = gridwidth;
96   }
97
98   public int getGridx() {
99     return gridx;
100   }
101
102   public void setGridx(int gridx) {
103     this.gridx = gridx;
104   }
105
106   public int getGridy() {
107     return gridy;
108   }
109
110   public void setGridy(int gridy) {
111     this.gridy = gridy;
112   }
113
114   public Insets getInsets() {
115     return insets;
116   }
117
118   public void setInsets(Insets insets) {
119     this.insets = insets;
120   }
121
122   public int getIpadx() {
123     return ipadx;
124   }
125
126   public void setIpadx(int ipadx) {
127     this.ipadx = ipadx;
128   }
129
130   public int getIpady() {
131     return ipady;
132   }
133
134   public void setIpady(int ipady) {
135     this.ipady = ipady;
136   }
137
138   public double getWeightx() {
139     return weightx;
140   }
141
142   public void setWeightx(double weightx) {
143     this.weightx = weightx;
144   }
145
146   public double getWeighty() {
147     return weighty;
148   }
149
150   public void setWeighty(double weighty) {
151     this.weighty = weighty;
152   }
153 }
154
Popular Tags