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