1431
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1998 by Andreas Vogel
|
|
3 |
COPYRIGHT (c) 1998 by eXept Software AG
|
|
4 |
All Rights Reserved
|
|
5 |
|
|
6 |
This software is furnished under a license and may be used
|
|
7 |
only in accordance with the terms of that license and with the
|
|
8 |
inclusion of the above copyright notice. This software may not
|
|
9 |
be provided or otherwise made available to, or used by, any
|
|
10 |
other person. No title to or ownership of the software is
|
|
11 |
hereby transferred.
|
|
12 |
"
|
|
13 |
|
|
14 |
|
721
|
15 |
Object subclass:#GridBagLayoutInfo
|
|
16 |
instanceVariableNames:'width height startX startY minWidth minHeight weightX weightY'
|
|
17 |
classVariableNames:''
|
|
18 |
poolDictionaries:''
|
|
19 |
category:'Views-Support'
|
|
20 |
!
|
|
21 |
|
|
22 |
!GridBagLayoutInfo class methodsFor:'documentation'!
|
|
23 |
|
1431
|
24 |
copyright
|
|
25 |
"
|
|
26 |
COPYRIGHT (c) 1998 by Andreas Vogel
|
|
27 |
COPYRIGHT (c) 1998 by eXept Software AG
|
|
28 |
All Rights Reserved
|
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
|
|
38 |
!
|
|
39 |
|
721
|
40 |
documentation
|
|
41 |
"
|
|
42 |
This is a helper class for the GridBagLayoutView and not usable for general purposes.
|
|
43 |
|
|
44 |
Instance variables:
|
|
45 |
|
|
46 |
int width, height number of cells horizontally, vertically
|
|
47 |
int startx, starty starting point for layout
|
|
48 |
int minWidth[] largest minWidth in each column
|
|
49 |
int minHeight[] largest minHeight in each row
|
|
50 |
double weightX[] largest weight in each column
|
|
51 |
double weightY[] largest weight in each row
|
|
52 |
|
|
53 |
[see also:]
|
|
54 |
GridBagLayoutView
|
|
55 |
|
|
56 |
[author:]
|
|
57 |
Andreas Vogel
|
|
58 |
"
|
|
59 |
! !
|
|
60 |
|
|
61 |
!GridBagLayoutInfo methodsFor:'accessing'!
|
|
62 |
|
|
63 |
height
|
|
64 |
"return the value of the instance variable 'height' (automatically generated)"
|
|
65 |
|
|
66 |
^ height
|
|
67 |
|
|
68 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
69 |
!
|
|
70 |
|
|
71 |
height:something
|
|
72 |
"set the value of the instance variable 'height' (automatically generated)"
|
|
73 |
|
|
74 |
height := something.
|
|
75 |
|
|
76 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
77 |
!
|
|
78 |
|
|
79 |
minHeight
|
|
80 |
"return the value of the instance variable 'minHeight' (automatically generated)"
|
|
81 |
|
|
82 |
^ minHeight
|
|
83 |
|
|
84 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
85 |
!
|
|
86 |
|
|
87 |
minHeight:something
|
|
88 |
"set the value of the instance variable 'minHeight' (automatically generated)"
|
|
89 |
|
|
90 |
minHeight := something.
|
|
91 |
|
|
92 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
93 |
!
|
|
94 |
|
|
95 |
minWidth
|
|
96 |
"return the value of the instance variable 'minWidth' (automatically generated)"
|
|
97 |
|
|
98 |
^ minWidth
|
|
99 |
|
|
100 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
101 |
!
|
|
102 |
|
|
103 |
minWidth:something
|
|
104 |
"set the value of the instance variable 'minWidth' (automatically generated)"
|
|
105 |
|
|
106 |
minWidth := something.
|
|
107 |
|
|
108 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
109 |
!
|
|
110 |
|
|
111 |
startX
|
|
112 |
"return the value of the instance variable 'startX' (automatically generated)"
|
|
113 |
|
|
114 |
^ startX
|
|
115 |
|
|
116 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
117 |
!
|
|
118 |
|
|
119 |
startX:something
|
|
120 |
"set the value of the instance variable 'startX' (automatically generated)"
|
|
121 |
|
|
122 |
startX := something.
|
|
123 |
|
|
124 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
125 |
!
|
|
126 |
|
|
127 |
startY
|
|
128 |
"return the value of the instance variable 'startY' (automatically generated)"
|
|
129 |
|
|
130 |
^ startY
|
|
131 |
|
|
132 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
133 |
!
|
|
134 |
|
|
135 |
startY:something
|
|
136 |
"set the value of the instance variable 'startY' (automatically generated)"
|
|
137 |
|
|
138 |
startY := something.
|
|
139 |
|
|
140 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
141 |
!
|
|
142 |
|
|
143 |
weightX
|
|
144 |
"return the value of the instance variable 'weightX' (automatically generated)"
|
|
145 |
|
|
146 |
^ weightX
|
|
147 |
|
|
148 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
149 |
!
|
|
150 |
|
|
151 |
weightX:something
|
|
152 |
"set the value of the instance variable 'weightX' (automatically generated)"
|
|
153 |
|
|
154 |
weightX := something.
|
|
155 |
|
|
156 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
157 |
!
|
|
158 |
|
|
159 |
weightY
|
|
160 |
"return the value of the instance variable 'weightY' (automatically generated)"
|
|
161 |
|
|
162 |
^ weightY
|
|
163 |
|
|
164 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
165 |
!
|
|
166 |
|
|
167 |
weightY:something
|
|
168 |
"set the value of the instance variable 'weightY' (automatically generated)"
|
|
169 |
|
|
170 |
weightY := something.
|
|
171 |
|
|
172 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
173 |
!
|
|
174 |
|
|
175 |
width
|
|
176 |
"return the value of the instance variable 'width' (automatically generated)"
|
|
177 |
|
|
178 |
^ width
|
|
179 |
|
|
180 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
181 |
!
|
|
182 |
|
|
183 |
width:something
|
|
184 |
"set the value of the instance variable 'width' (automatically generated)"
|
|
185 |
|
|
186 |
width := something.
|
|
187 |
|
|
188 |
"Created: / 17.1.1998 / 14:32:39 / av"
|
|
189 |
! !
|
|
190 |
|
|
191 |
!GridBagLayoutInfo methodsFor:'initialization'!
|
|
192 |
|
|
193 |
initialize
|
|
194 |
|
|
195 |
super initialize.
|
|
196 |
|
|
197 |
minWidth := IdentityDictionaryWithDefault newWithDefaultValue:0.
|
|
198 |
minHeight := IdentityDictionaryWithDefault newWithDefaultValue:0.
|
|
199 |
|
|
200 |
weightX := IdentityDictionaryWithDefault newWithDefaultValue:0.0.
|
|
201 |
weightY := IdentityDictionaryWithDefault newWithDefaultValue:0.0.
|
|
202 |
|
|
203 |
"Created: / 17.1.1998 / 14:32:30 / av"
|
|
204 |
"Modified: / 20.1.1998 / 16:50:16 / av"
|
|
205 |
! !
|
|
206 |
|
|
207 |
!GridBagLayoutInfo class methodsFor:'documentation'!
|
|
208 |
|
|
209 |
version
|
1431
|
210 |
^ '$Header: /cvs/stx/stx/libwidg2/GridBagLayoutInfo.st,v 1.2 1999-07-06 16:49:14 cg Exp $'
|
721
|
211 |
! !
|