Re: more precise formulation
Adam Megacz <[email protected]> Sat, 03 Apr 2004 19:55:34 -0800
| Newsgroups | gmane.comp.java.xwt.core |
|---|---|
| Organization | XWT |
| Message-ID | <[email protected]> |
k1..k3 are artificial variables. You can think of them as the "error factor" -- how far we are from all the columns being the same size. We want to minimize that so long as we don't break any of the important rules (like minwidth, maxwidth, etc). - a Tupshin Harper <[email protected]> writes: > Adam Megacz wrote: > >>Once the parent's size has been chosen (ie in the sizing phase), *add* >>the following equations to the constraint system: >> >> c1 + c2 + c3 + ... = width >> >> k1 = abs(width/n - c1) >> k2 = abs(width/n - c2) >> k3 = abs(width/n - c3) >> ... >> >>Where n is the number of columns. Then solve with the goal of >>minimizing k1+k2+k3. >> >> > Can you explain the significance of k1..kn here, and how it relates to > (or doesn't) k as described in section 3.2.3(Placing) of the reference? > > -Tupshin > > _______________________________________________ > core mailing list > [email protected] > http://lists.xwt.org/listinfo/core > -- "It's lucky," he added, after a pause, "that there are such a lot of islands in the world. I almost envy you, Mr. Watson." -- Mustapha Mond