KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > form > layoutdesign > ALT_Resizing04Test


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.form.layoutdesign;
21
22 import java.awt.Dimension JavaDoc;
23 import java.awt.Point JavaDoc;
24 import java.awt.Rectangle JavaDoc;
25 import java.io.File JavaDoc;
26 import java.io.IOException JavaDoc;
27 import java.util.HashMap JavaDoc;
28 import org.openide.filesystems.FileObject;
29 import org.openide.filesystems.FileUtil;
30 import org.netbeans.modules.form.RADComponent;
31
32 public class ALT_Resizing04Test extends LayoutTestCase {
33
34     public ALT_Resizing04Test(String JavaDoc name) {
35         super(name);
36         try {
37         className = this.getClass().getName();
38         className = className.substring(className.lastIndexOf('.') + 1, className.length());
39             startingFormFile = FileUtil.toFileObject(new File JavaDoc(url.getFile() + goldenFilesPath + className + "-StartingForm.form").getCanonicalFile());
40         } catch (IOException JavaDoc ioe) {
41             fail(ioe.toString());
42         }
43     }
44
45     // Resize jTree1/jScrollPane1 slightly to the right.
46
public void doChanges0() {
47         ld.externalSizeChangeHappened();
48         // > UPDATE CURRENT STATE
49
contInterior.put("jPanel1", new Rectangle JavaDoc(93, 84, 100, 100));
50         compBounds.put("jPanel1", new Rectangle JavaDoc(93, 84, 100, 100));
51         baselinePosition.put("jPanel1-100-100", new Integer JavaDoc(0));
52         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
53         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 100));
54         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
55         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
56         contInterior.put("Form", new Rectangle JavaDoc(0, 0, 404, 400));
57         compBounds.put("jScrollPane1", new Rectangle JavaDoc(10, 11, 77, 291));
58         baselinePosition.put("jScrollPane1-77-291", new Integer JavaDoc(0));
59         compPrefSize.put("jScrollPane1", new Dimension JavaDoc(77, 324));
60         compBounds.put("jTextField1", new Rectangle JavaDoc(93, 11, 209, 20));
61         baselinePosition.put("jTextField1-209-20", new Integer JavaDoc(14));
62         compPrefSize.put("jTextField1", new Dimension JavaDoc(59, 20));
63         compBounds.put("jPanel1", new Rectangle JavaDoc(93, 84, 100, 100));
64         baselinePosition.put("jPanel1-100-100", new Integer JavaDoc(0));
65         compBounds.put("jButton1", new Rectangle JavaDoc(10, 308, 75, 23));
66         baselinePosition.put("jButton1-75-23", new Integer JavaDoc(15));
67         compPrefSize.put("jButton1", new Dimension JavaDoc(75, 23));
68         compBounds.put("jButton2", new Rectangle JavaDoc(10, 337, 75, 23));
69         baselinePosition.put("jButton2-75-23", new Integer JavaDoc(15));
70         compPrefSize.put("jButton2", new Dimension JavaDoc(75, 23));
71         compBounds.put("jButton3", new Rectangle JavaDoc(10, 366, 75, 23));
72         baselinePosition.put("jButton3-75-23", new Integer JavaDoc(15));
73         compPrefSize.put("jButton3", new Dimension JavaDoc(75, 23));
74         prefPadding.put("jScrollPane1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
75
prefPadding.put("jScrollPane1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
76
prefPaddingInParent.put("Form-jButton1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
77
prefPaddingInParent.put("Form-jButton2-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
78
prefPaddingInParent.put("Form-jButton3-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
79
prefPaddingInParent.put("Form-jScrollPane1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
80
prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
81
prefPaddingInParent.put("Form-jTextField1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
82
prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
83
prefPadding.put("jPanel1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
84
prefPadding.put("jButton1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
85
prefPadding.put("jButton2-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
86
prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
87
ld.updateCurrentState();
88         // < UPDATE CURRENT STATE
89
// > START RESIZING
90
{
91             String JavaDoc[] compIds = new String JavaDoc[] {
92                 "jScrollPane1"
93                 };
94             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
95                 new Rectangle JavaDoc(10, 11, 77, 291)
96                 };
97             Point JavaDoc hotspot = new Point JavaDoc(84,154);
98             int[] resizeEdges = new int[] {
99                 1
100                     ,-1
101                 };
102             boolean inLayout = true;
103             ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);
104         }
105         baselinePosition.put("jScrollPane1-77-291", new Integer JavaDoc(0));
106         compPrefSize.put("jScrollPane1", new Dimension JavaDoc(77, 324));
107         // < START RESIZING
108
// > MOVE
109
{
110             Point JavaDoc p = new Point JavaDoc(111,156);
111             String JavaDoc containerId= "Form";
112             boolean autoPositioning = true;
113             boolean lockDimension = false;
114             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
115                 new Rectangle JavaDoc(10, 11, 104, 291)
116                 };
117             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
118         }
119         // < MOVE
120
// > MOVE
121
{
122             Point JavaDoc p = new Point JavaDoc(112,156);
123             String JavaDoc containerId= "Form";
124             boolean autoPositioning = true;
125             boolean lockDimension = false;
126             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
127                 new Rectangle JavaDoc(10, 11, 105, 291)
128                 };
129             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
130         }
131         // < MOVE
132
// > END MOVING
133
prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
134
ld.endMoving(true);
135         // < END MOVING
136
ld.externalSizeChangeHappened();
137         // > UPDATE CURRENT STATE
138
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 100));
139         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 100));
140         baselinePosition.put("jPanel1-100-100", new Integer JavaDoc(0));
141         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
142         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 100));
143         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
144         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
145         contInterior.put("Form", new Rectangle JavaDoc(0, 0, 404, 400));
146         compBounds.put("jTextField1", new Rectangle JavaDoc(121, 11, 209, 20));
147         baselinePosition.put("jTextField1-209-20", new Integer JavaDoc(14));
148         compPrefSize.put("jTextField1", new Dimension JavaDoc(59, 20));
149         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 100));
150         baselinePosition.put("jPanel1-100-100", new Integer JavaDoc(0));
151         compBounds.put("jButton1", new Rectangle JavaDoc(10, 308, 75, 23));
152         baselinePosition.put("jButton1-75-23", new Integer JavaDoc(15));
153         compPrefSize.put("jButton1", new Dimension JavaDoc(75, 23));
154         compBounds.put("jButton2", new Rectangle JavaDoc(10, 337, 75, 23));
155         baselinePosition.put("jButton2-75-23", new Integer JavaDoc(15));
156         compPrefSize.put("jButton2", new Dimension JavaDoc(75, 23));
157         compBounds.put("jButton3", new Rectangle JavaDoc(10, 366, 75, 23));
158         baselinePosition.put("jButton3-75-23", new Integer JavaDoc(15));
159         compPrefSize.put("jButton3", new Dimension JavaDoc(75, 23));
160         compBounds.put("jScrollPane1", new Rectangle JavaDoc(10, 11, 105, 291));
161         baselinePosition.put("jScrollPane1-105-291", new Integer JavaDoc(0));
162         compPrefSize.put("jScrollPane1", new Dimension JavaDoc(77, 324));
163         prefPadding.put("jScrollPane1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
164
prefPadding.put("jScrollPane1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
165
prefPaddingInParent.put("Form-jButton1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
166
prefPaddingInParent.put("Form-jButton2-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
167
prefPaddingInParent.put("Form-jButton3-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
168
prefPaddingInParent.put("Form-jScrollPane1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
169
prefPaddingInParent.put("Form-jButton1-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
170
prefPaddingInParent.put("Form-jButton2-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
171
prefPaddingInParent.put("Form-jButton3-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
172
prefPaddingInParent.put("Form-jTextField1-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
173
prefPaddingInParent.put("Form-jPanel1-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
174
prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
175
prefPaddingInParent.put("Form-jTextField1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
176
prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
177
prefPadding.put("jPanel1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
178
prefPadding.put("jButton1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
179
prefPadding.put("jButton2-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
180
prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
181
ld.updateCurrentState();
182         // < UPDATE CURRENT STATE
183
}
184
185     // Resize JPanel down to snap to container border.
186
public void doChanges1() {
187         // > START RESIZING
188
{
189             String JavaDoc[] compIds = new String JavaDoc[] {
190                 "jPanel1"
191                 };
192             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
193                 new Rectangle JavaDoc(121, 84, 100, 100)
194                 };
195             Point JavaDoc hotspot = new Point JavaDoc(164,181);
196             int[] resizeEdges = new int[] {
197                 -1
198                     ,1
199                 };
200             boolean inLayout = true;
201             ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);
202         }
203         baselinePosition.put("jPanel1-100-100", new Integer JavaDoc(0));
204         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
205         // < START RESIZING
206
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
207
// > MOVE
208
{
209             Point JavaDoc p = new Point JavaDoc(165,384);
210             String JavaDoc containerId= "Form";
211             boolean autoPositioning = true;
212             boolean lockDimension = false;
213             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
214                 new Rectangle JavaDoc(121, 84, 100, 305)
215                 };
216             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
217         }
218         // < MOVE
219
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
220
// > MOVE
221
{
222             Point JavaDoc p = new Point JavaDoc(166,384);
223             String JavaDoc containerId= "Form";
224             boolean autoPositioning = true;
225             boolean lockDimension = false;
226             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
227                 new Rectangle JavaDoc(121, 84, 100, 305)
228                 };
229             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
230         }
231         // < MOVE
232
// > END MOVING
233
prefPadding.put("jTextField1-jPanel1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
234
prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
235
prefPadding.put("jButton1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
236
prefPadding.put("jButton2-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
237
prefPadding.put("jButton3-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
238
prefPaddingInParent.put("Form-jPanel1-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
239
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 305));
240         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 305));
241         baselinePosition.put("jPanel1-100-305", new Integer JavaDoc(0));
242         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
243         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 100));
244         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
245         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
246         ld.endMoving(true);
247         // < END MOVING
248
ld.externalSizeChangeHappened();
249         // > UPDATE CURRENT STATE
250
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 305));
251         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 305));
252         baselinePosition.put("jPanel1-100-305", new Integer JavaDoc(0));
253         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
254         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 305));
255         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
256         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
257         contInterior.put("Form", new Rectangle JavaDoc(0, 0, 404, 400));
258         compBounds.put("jTextField1", new Rectangle JavaDoc(121, 11, 209, 20));
259         baselinePosition.put("jTextField1-209-20", new Integer JavaDoc(14));
260         compPrefSize.put("jTextField1", new Dimension JavaDoc(59, 20));
261         compBounds.put("jButton1", new Rectangle JavaDoc(10, 308, 75, 23));
262         baselinePosition.put("jButton1-75-23", new Integer JavaDoc(15));
263         compPrefSize.put("jButton1", new Dimension JavaDoc(75, 23));
264         compBounds.put("jButton2", new Rectangle JavaDoc(10, 337, 75, 23));
265         baselinePosition.put("jButton2-75-23", new Integer JavaDoc(15));
266         compPrefSize.put("jButton2", new Dimension JavaDoc(75, 23));
267         compBounds.put("jButton3", new Rectangle JavaDoc(10, 366, 75, 23));
268         baselinePosition.put("jButton3-75-23", new Integer JavaDoc(15));
269         compPrefSize.put("jButton3", new Dimension JavaDoc(75, 23));
270         compBounds.put("jScrollPane1", new Rectangle JavaDoc(10, 11, 105, 291));
271         baselinePosition.put("jScrollPane1-105-291", new Integer JavaDoc(0));
272         compPrefSize.put("jScrollPane1", new Dimension JavaDoc(77, 324));
273         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 305));
274         baselinePosition.put("jPanel1-100-305", new Integer JavaDoc(0));
275         prefPaddingInParent.put("Form-jScrollPane1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
276
prefPaddingInParent.put("Form-jButton1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
277
prefPaddingInParent.put("Form-jButton2-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
278
prefPaddingInParent.put("Form-jButton3-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
279
prefPadding.put("jScrollPane1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
280
prefPadding.put("jScrollPane1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
281
prefPadding.put("jButton1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
282
prefPadding.put("jButton1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
283
prefPadding.put("jButton2-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
284
prefPadding.put("jButton2-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
285
prefPadding.put("jButton3-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
286
prefPadding.put("jButton3-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
287
prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
288
prefPadding.put("jButton1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
289
prefPadding.put("jButton2-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
290
prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
291
prefPaddingInParent.put("Form-jTextField1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
292
prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
293
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
294
ld.updateCurrentState();
295         // < UPDATE CURRENT STATE
296
}
297
298     // Resize JPanel's bottom edge to align with bottom edge of jButton2.
299
public void doChanges2() {
300         // > START RESIZING
301
{
302             String JavaDoc[] compIds = new String JavaDoc[] {
303                 "jPanel1"
304                 };
305             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
306                 new Rectangle JavaDoc(121, 84, 100, 305)
307                 };
308             Point JavaDoc hotspot = new Point JavaDoc(169,388);
309             int[] resizeEdges = new int[] {
310                 -1
311                     ,1
312                 };
313             boolean inLayout = true;
314             ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);
315         }
316         baselinePosition.put("jPanel1-100-305", new Integer JavaDoc(0));
317         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
318         // < START RESIZING
319
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
320
// > MOVE
321
{
322             Point JavaDoc p = new Point JavaDoc(168,367);
323             String JavaDoc containerId= "Form";
324             boolean autoPositioning = true;
325             boolean lockDimension = false;
326             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
327                 new Rectangle JavaDoc(121, 84, 100, 284)
328                 };
329             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
330         }
331         // < MOVE
332
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
333
// > MOVE
334
{
335             Point JavaDoc p = new Point JavaDoc(168,366);
336             String JavaDoc containerId= "Form";
337             boolean autoPositioning = true;
338             boolean lockDimension = false;
339             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
340                 new Rectangle JavaDoc(121, 84, 100, 276)
341                 };
342             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
343         }
344         // < MOVE
345
// > END MOVING
346
prefPadding.put("jTextField1-jPanel1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
347
prefPaddingInParent.put("Form-jPanel1-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
348
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 276));
349         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 276));
350         baselinePosition.put("jPanel1-100-276", new Integer JavaDoc(0));
351         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
352         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 305));
353         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
354         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
355         prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
356
prefPaddingInParent.put("Form-jTextField1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
357
prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
358
compPrefSize.put("jButton1", new Dimension JavaDoc(75, 23));
359         prefPadding.put("jButton1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
360
compPrefSize.put("jButton2", new Dimension JavaDoc(75, 23));
361         compPrefSize.put("jTextField1", new Dimension JavaDoc(59, 20));
362         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 305));
363         prefPadding.put("jButton2-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
364
prefPadding.put("jPanel1-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
365
compPrefSize.put("jButton3", new Dimension JavaDoc(75, 23));
366         prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
367
ld.endMoving(true);
368         // < END MOVING
369
ld.externalSizeChangeHappened();
370         // > UPDATE CURRENT STATE
371
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 276));
372         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 276));
373         baselinePosition.put("jPanel1-100-276", new Integer JavaDoc(0));
374         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
375         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 276));
376         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
377         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
378         contInterior.put("Form", new Rectangle JavaDoc(0, 0, 404, 400));
379         compBounds.put("jTextField1", new Rectangle JavaDoc(121, 11, 209, 20));
380         baselinePosition.put("jTextField1-209-20", new Integer JavaDoc(14));
381         compPrefSize.put("jTextField1", new Dimension JavaDoc(59, 20));
382         compBounds.put("jButton1", new Rectangle JavaDoc(10, 308, 75, 23));
383         baselinePosition.put("jButton1-75-23", new Integer JavaDoc(15));
384         compPrefSize.put("jButton1", new Dimension JavaDoc(75, 23));
385         compBounds.put("jButton2", new Rectangle JavaDoc(10, 337, 75, 23));
386         baselinePosition.put("jButton2-75-23", new Integer JavaDoc(15));
387         compPrefSize.put("jButton2", new Dimension JavaDoc(75, 23));
388         compBounds.put("jButton3", new Rectangle JavaDoc(10, 366, 75, 23));
389         baselinePosition.put("jButton3-75-23", new Integer JavaDoc(15));
390         compPrefSize.put("jButton3", new Dimension JavaDoc(75, 23));
391         compBounds.put("jScrollPane1", new Rectangle JavaDoc(10, 11, 105, 291));
392         baselinePosition.put("jScrollPane1-105-291", new Integer JavaDoc(0));
393         compPrefSize.put("jScrollPane1", new Dimension JavaDoc(77, 324));
394         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 276));
395         baselinePosition.put("jPanel1-100-276", new Integer JavaDoc(0));
396         prefPaddingInParent.put("Form-jScrollPane1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
397
prefPaddingInParent.put("Form-jButton1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
398
prefPaddingInParent.put("Form-jButton2-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
399
prefPaddingInParent.put("Form-jButton3-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
400
prefPadding.put("jScrollPane1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
401
prefPadding.put("jScrollPane1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
402
prefPadding.put("jButton1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
403
prefPadding.put("jButton1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
404
prefPadding.put("jButton2-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
405
prefPadding.put("jButton2-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
406
prefPadding.put("jButton3-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
407
prefPadding.put("jButton3-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
408
prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
409
prefPadding.put("jButton1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
410
prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
411
prefPaddingInParent.put("Form-jTextField1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
412
prefPadding.put("jButton2-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
413
prefPadding.put("jPanel1-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
414
prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
415
ld.updateCurrentState();
416         // < UPDATE CURRENT STATE
417
}
418
419     // Resize JPanel's bottom edge to align with bottom edge of jButton1.
420
public void doChanges3() {
421         // > START RESIZING
422
{
423             String JavaDoc[] compIds = new String JavaDoc[] {
424                 "jPanel1"
425                 };
426             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
427                 new Rectangle JavaDoc(121, 84, 100, 276)
428                 };
429             Point JavaDoc hotspot = new Point JavaDoc(168,364);
430             int[] resizeEdges = new int[] {
431                 -1
432                     ,1
433                 };
434             boolean inLayout = true;
435             ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);
436         }
437         baselinePosition.put("jPanel1-100-276", new Integer JavaDoc(0));
438         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
439         // < START RESIZING
440
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
441
// > MOVE
442
{
443             Point JavaDoc p = new Point JavaDoc(164,341);
444             String JavaDoc containerId= "Form";
445             boolean autoPositioning = true;
446             boolean lockDimension = false;
447             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
448                 new Rectangle JavaDoc(121, 84, 100, 247)
449                 };
450             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
451         }
452         // < MOVE
453
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
454
// > MOVE
455
{
456             Point JavaDoc p = new Point JavaDoc(164,340);
457             String JavaDoc containerId= "Form";
458             boolean autoPositioning = true;
459             boolean lockDimension = false;
460             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
461                 new Rectangle JavaDoc(121, 84, 100, 247)
462                 };
463             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
464         }
465         // < MOVE
466
// > END MOVING
467
prefPadding.put("jTextField1-jPanel1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
468
prefPaddingInParent.put("Form-jPanel1-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
469
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 247));
470         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 247));
471         baselinePosition.put("jPanel1-100-247", new Integer JavaDoc(0));
472         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
473         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 276));
474         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
475         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
476         prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
477
prefPaddingInParent.put("Form-jTextField1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
478
prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
479
compPrefSize.put("jButton1", new Dimension JavaDoc(75, 23));
480         compPrefSize.put("jTextField1", new Dimension JavaDoc(59, 20));
481         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 276));
482         prefPadding.put("jButton1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
483
prefPadding.put("jPanel1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
484
compPrefSize.put("jButton2", new Dimension JavaDoc(75, 23));
485         prefPadding.put("jButton2-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
486
compPrefSize.put("jButton3", new Dimension JavaDoc(75, 23));
487         prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
488
ld.endMoving(true);
489         // < END MOVING
490
ld.externalSizeChangeHappened();
491         // > UPDATE CURRENT STATE
492
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 247));
493         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 247));
494         baselinePosition.put("jPanel1-100-247", new Integer JavaDoc(0));
495         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
496         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 247));
497         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
498         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
499         contInterior.put("Form", new Rectangle JavaDoc(0, 0, 404, 400));
500         compBounds.put("jTextField1", new Rectangle JavaDoc(121, 11, 209, 20));
501         baselinePosition.put("jTextField1-209-20", new Integer JavaDoc(14));
502         compPrefSize.put("jTextField1", new Dimension JavaDoc(59, 20));
503         compBounds.put("jButton1", new Rectangle JavaDoc(10, 308, 75, 23));
504         baselinePosition.put("jButton1-75-23", new Integer JavaDoc(15));
505         compPrefSize.put("jButton1", new Dimension JavaDoc(75, 23));
506         compBounds.put("jButton2", new Rectangle JavaDoc(10, 337, 75, 23));
507         baselinePosition.put("jButton2-75-23", new Integer JavaDoc(15));
508         compPrefSize.put("jButton2", new Dimension JavaDoc(75, 23));
509         compBounds.put("jButton3", new Rectangle JavaDoc(10, 366, 75, 23));
510         baselinePosition.put("jButton3-75-23", new Integer JavaDoc(15));
511         compPrefSize.put("jButton3", new Dimension JavaDoc(75, 23));
512         compBounds.put("jScrollPane1", new Rectangle JavaDoc(10, 11, 105, 291));
513         baselinePosition.put("jScrollPane1-105-291", new Integer JavaDoc(0));
514         compPrefSize.put("jScrollPane1", new Dimension JavaDoc(77, 324));
515         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 247));
516         baselinePosition.put("jPanel1-100-247", new Integer JavaDoc(0));
517         prefPaddingInParent.put("Form-jScrollPane1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
518
prefPaddingInParent.put("Form-jButton1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
519
prefPaddingInParent.put("Form-jButton2-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
520
prefPaddingInParent.put("Form-jButton3-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
521
prefPadding.put("jScrollPane1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
522
prefPadding.put("jScrollPane1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
523
prefPadding.put("jButton1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
524
prefPadding.put("jButton1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
525
prefPadding.put("jButton2-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
526
prefPadding.put("jButton2-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
527
prefPadding.put("jButton3-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
528
prefPadding.put("jButton3-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
529
prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
530
prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
531
prefPaddingInParent.put("Form-jTextField1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
532
prefPadding.put("jButton1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
533
prefPadding.put("jPanel1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
534
prefPadding.put("jButton2-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
535
prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
536
ld.updateCurrentState();
537         // < UPDATE CURRENT STATE
538
}
539
540     // Resize JPanel's bottom edge to align with bottom edge of jTree1/jScrollPane1.
541
public void doChanges4() {
542         // > START RESIZING
543
{
544             String JavaDoc[] compIds = new String JavaDoc[] {
545                 "jPanel1"
546                 };
547             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
548                 new Rectangle JavaDoc(121, 84, 100, 247)
549                 };
550             Point JavaDoc hotspot = new Point JavaDoc(169,335);
551             int[] resizeEdges = new int[] {
552                 -1
553                     ,1
554                 };
555             boolean inLayout = true;
556             ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);
557         }
558         baselinePosition.put("jPanel1-100-247", new Integer JavaDoc(0));
559         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
560         // < START RESIZING
561
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
562
// > MOVE
563
{
564             Point JavaDoc p = new Point JavaDoc(160,311);
565             String JavaDoc containerId= "Form";
566             boolean autoPositioning = true;
567             boolean lockDimension = false;
568             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
569                 new Rectangle JavaDoc(121, 84, 100, 218)
570                 };
571             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
572         }
573         // < MOVE
574
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
575
// > MOVE
576
{
577             Point JavaDoc p = new Point JavaDoc(160,310);
578             String JavaDoc containerId= "Form";
579             boolean autoPositioning = true;
580             boolean lockDimension = false;
581             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
582                 new Rectangle JavaDoc(121, 84, 100, 218)
583                 };
584             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
585         }
586         // < MOVE
587
// > END MOVING
588
prefPadding.put("jTextField1-jPanel1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
589
prefPaddingInParent.put("Form-jPanel1-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
590
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 218));
591         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 218));
592         baselinePosition.put("jPanel1-100-218", new Integer JavaDoc(0));
593         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
594         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 247));
595         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
596         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
597         prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
598
prefPaddingInParent.put("Form-jTextField1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
599
compPrefSize.put("jTextField1", new Dimension JavaDoc(59, 20));
600         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 247));
601         prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
602
prefPadding.put("jPanel1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
603
compPrefSize.put("jButton1", new Dimension JavaDoc(75, 23));
604         prefPadding.put("jButton1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
605
compPrefSize.put("jButton2", new Dimension JavaDoc(75, 23));
606         prefPadding.put("jButton2-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
607
compPrefSize.put("jButton3", new Dimension JavaDoc(75, 23));
608         prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
609
ld.endMoving(true);
610         // < END MOVING
611
ld.externalSizeChangeHappened();
612         // > UPDATE CURRENT STATE
613
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 218));
614         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 218));
615         baselinePosition.put("jPanel1-100-218", new Integer JavaDoc(0));
616         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
617         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 218));
618         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
619         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
620         contInterior.put("Form", new Rectangle JavaDoc(0, 0, 404, 400));
621         compBounds.put("jTextField1", new Rectangle JavaDoc(121, 11, 209, 20));
622         baselinePosition.put("jTextField1-209-20", new Integer JavaDoc(14));
623         compPrefSize.put("jTextField1", new Dimension JavaDoc(59, 20));
624         compBounds.put("jButton1", new Rectangle JavaDoc(10, 308, 75, 23));
625         baselinePosition.put("jButton1-75-23", new Integer JavaDoc(15));
626         compPrefSize.put("jButton1", new Dimension JavaDoc(75, 23));
627         compBounds.put("jButton2", new Rectangle JavaDoc(10, 337, 75, 23));
628         baselinePosition.put("jButton2-75-23", new Integer JavaDoc(15));
629         compPrefSize.put("jButton2", new Dimension JavaDoc(75, 23));
630         compBounds.put("jButton3", new Rectangle JavaDoc(10, 366, 75, 23));
631         baselinePosition.put("jButton3-75-23", new Integer JavaDoc(15));
632         compPrefSize.put("jButton3", new Dimension JavaDoc(75, 23));
633         compBounds.put("jScrollPane1", new Rectangle JavaDoc(10, 11, 105, 291));
634         baselinePosition.put("jScrollPane1-105-291", new Integer JavaDoc(0));
635         compPrefSize.put("jScrollPane1", new Dimension JavaDoc(77, 324));
636         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 100, 218));
637         baselinePosition.put("jPanel1-100-218", new Integer JavaDoc(0));
638         prefPaddingInParent.put("Form-jScrollPane1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
639
prefPaddingInParent.put("Form-jButton1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
640
prefPaddingInParent.put("Form-jButton2-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
641
prefPaddingInParent.put("Form-jButton3-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
642
prefPadding.put("jScrollPane1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
643
prefPadding.put("jScrollPane1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
644
prefPadding.put("jButton1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
645
prefPadding.put("jButton1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
646
prefPadding.put("jButton2-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
647
prefPadding.put("jButton2-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
648
prefPadding.put("jButton3-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
649
prefPadding.put("jButton3-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
650
prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
651
prefPaddingInParent.put("Form-jTextField1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
652
prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
653
prefPadding.put("jPanel1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
654
prefPadding.put("jButton1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
655
prefPadding.put("jButton2-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
656
prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
657
ld.updateCurrentState();
658         // < UPDATE CURRENT STATE
659
}
660
661     // Resize JPanel down and right to snap to container border at the bottom
662
// and to align with jTextField1 at the right edge.
663
public void doChanges5() {
664         // > START RESIZING
665
{
666             String JavaDoc[] compIds = new String JavaDoc[] {
667                 "jPanel1"
668                 };
669             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
670                 new Rectangle JavaDoc(121, 84, 100, 218)
671                 };
672             Point JavaDoc hotspot = new Point JavaDoc(220,305);
673             int[] resizeEdges = new int[] {
674                 1
675                     ,1
676                 };
677             boolean inLayout = true;
678             ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);
679         }
680         baselinePosition.put("jPanel1-100-218", new Integer JavaDoc(0));
681         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
682         // < START RESIZING
683
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
684
prefPaddingInParent.put("Form-jPanel1-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
685
// > MOVE
686
{
687             Point JavaDoc p = new Point JavaDoc(326,385);
688             String JavaDoc containerId= "Form";
689             boolean autoPositioning = true;
690             boolean lockDimension = false;
691             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
692                 new Rectangle JavaDoc(121, 84, 209, 305)
693                 };
694             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
695         }
696         // < MOVE
697
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
698
prefPaddingInParent.put("Form-jPanel1-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
699
// > MOVE
700
{
701             Point JavaDoc p = new Point JavaDoc(327,385);
702             String JavaDoc containerId= "Form";
703             boolean autoPositioning = true;
704             boolean lockDimension = false;
705             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
706                 new Rectangle JavaDoc(121, 84, 209, 305)
707                 };
708             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
709         }
710         // < MOVE
711
// > END MOVING
712
compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 218));
713         prefPadding.put("jTextField1-jPanel1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
714
prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
715
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 209, 305));
716         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 209, 305));
717         baselinePosition.put("jPanel1-209-305", new Integer JavaDoc(0));
718         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
719         compPrefSize.put("jPanel1", new Dimension JavaDoc(100, 218));
720         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
721         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
722         ld.endMoving(true);
723         // < END MOVING
724
ld.externalSizeChangeHappened();
725         // > UPDATE CURRENT STATE
726
contInterior.put("jPanel1", new Rectangle JavaDoc(121, 84, 209, 305));
727         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 209, 305));
728         baselinePosition.put("jPanel1-209-305", new Integer JavaDoc(0));
729         compMinSize.put("jPanel1", new Dimension JavaDoc(0, 0));
730         compPrefSize.put("jPanel1", new Dimension JavaDoc(209, 305));
731         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
732         hasExplicitPrefSize.put("jPanel1", new Boolean JavaDoc(false));
733         contInterior.put("Form", new Rectangle JavaDoc(0, 0, 404, 400));
734         compBounds.put("jTextField1", new Rectangle JavaDoc(121, 11, 209, 20));
735         baselinePosition.put("jTextField1-209-20", new Integer JavaDoc(14));
736         compPrefSize.put("jTextField1", new Dimension JavaDoc(59, 20));
737         compBounds.put("jButton1", new Rectangle JavaDoc(10, 308, 75, 23));
738         baselinePosition.put("jButton1-75-23", new Integer JavaDoc(15));
739         compPrefSize.put("jButton1", new Dimension JavaDoc(75, 23));
740         compBounds.put("jButton2", new Rectangle JavaDoc(10, 337, 75, 23));
741         baselinePosition.put("jButton2-75-23", new Integer JavaDoc(15));
742         compPrefSize.put("jButton2", new Dimension JavaDoc(75, 23));
743         compBounds.put("jButton3", new Rectangle JavaDoc(10, 366, 75, 23));
744         baselinePosition.put("jButton3-75-23", new Integer JavaDoc(15));
745         compPrefSize.put("jButton3", new Dimension JavaDoc(75, 23));
746         compBounds.put("jScrollPane1", new Rectangle JavaDoc(10, 11, 105, 291));
747         baselinePosition.put("jScrollPane1-105-291", new Integer JavaDoc(0));
748         compPrefSize.put("jScrollPane1", new Dimension JavaDoc(77, 324));
749         compBounds.put("jPanel1", new Rectangle JavaDoc(121, 84, 209, 305));
750         baselinePosition.put("jPanel1-209-305", new Integer JavaDoc(0));
751         prefPaddingInParent.put("Form-jScrollPane1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
752
prefPaddingInParent.put("Form-jButton1-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
753
prefPaddingInParent.put("Form-jButton2-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
754
prefPaddingInParent.put("Form-jButton3-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
755
prefPadding.put("jScrollPane1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
756
prefPadding.put("jScrollPane1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
757
prefPadding.put("jButton1-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
758
prefPadding.put("jButton1-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
759
prefPadding.put("jButton2-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
760
prefPadding.put("jButton2-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
761
prefPadding.put("jButton3-jPanel1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
762
prefPadding.put("jButton3-jTextField1-0-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
763
prefPadding.put("jScrollPane1-jButton1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
764
prefPadding.put("jButton1-jButton2-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
765
prefPadding.put("jButton2-jButton3-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
766
prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
767
prefPaddingInParent.put("Form-jTextField1-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
768
prefPaddingInParent.put("Form-jButton3-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
769
prefPaddingInParent.put("Form-jPanel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
770
ld.updateCurrentState();
771         // < UPDATE CURRENT STATE
772
}
773     
774 }
775
Popular Tags