Lines Matching refs:baseline

33  * baseline without requiring that the components be of the same size.
119 * and baseline-relative
123 * baseline. Valid values are:</dd>
126 * SUMMARY="absolute, relative and baseline values as described above">
179 * Each row may have a baseline; the baseline is determined by the
180 * components in that row that have a valid baseline and are aligned
181 * along the baseline (the component's anchor value is one of {@code
183 * If none of the components in the row has a valid baseline, the row
184 * does not have a baseline.
186 * If a component spans rows it is aligned either to the baseline of
187 * the start row (if the baseline-resize behavior is {@code
188 * CONSTANT_ASCENT}) or the end row (if the baseline-resize behavior
192 * The following figure shows a baseline layout and includes a
197 * <img src="doc-files/GridBagLayout-baseline.png"
203 * has a baseline-resize behavior of <code>CONSTANT_DESCENT</code> and has
204 * an anchor of <code>BASELINE</code>. As the baseline-resize behavior
207 * <li>Two buttons, each with a baseline-resize behavior of
211 * they are both aligned along their baseline.
213 * Components positioned using one of the baseline-relative values resize
215 * value. How components change is dictated by how the baseline of the
216 * prevailing row changes. The baseline is anchored to the
218 * have a baseline-resize behavior of <code>CONSTANT_DESCENT</code>,
219 * otherwise the baseline is anchored to the top of the display area.
222 * <li>Resizable components positioned above the baseline can only
223 * grow as tall as the baseline. For example, if the baseline is at 100
225 * baseline can never grow more than 100 units.
226 * <li>Similarly, resizable components positioned below the baseline can
228 * baseline.
229 * <li>Resizable components positioned on the baseline with a
230 * baseline-resize behavior of <code>OTHER</code> are only resized if
231 * the baseline at the resized size fits within the display area. If
232 * the baseline is such that it does not fit within the display area
234 * <li>Components positioned on the baseline that do not have a
235 * baseline-resize behavior of <code>OTHER</code>
236 * can only grow as tall as {@code display height - baseline + baseline of component}.
238 * If you position a component along the baseline, but the
239 * component does not have a valid baseline, it will be vertically centered
241 * to the baseline and none of the components in the row have a valid
242 * baseline the component is vertically centered.
1298 // Component positioned above the baseline.
1300 // with the baseline the bottom inset is
1313 // Component positioned below the baseline.
1315 // with the baseline the top inset is
1537 * Calculate the baseline for the specified component.
1538 * If {@code c} is positioned along it's baseline, the baseline is
1540 * baseline resize behavior are set from the component; and true is
1550 // Apply the padding to the component, then ask for the baseline.
1555 // Component has a baseline
1556 int baseline = constraints.ascent;
1566 // Component has a baseline resize behavior of
1572 constraints.centerOffset = baseline - h / 2;
1574 if (baseline != nextBaseline) {
1578 else if (baseline == nextBaseline){
1768 * Positions on the baseline.
1783 // Bottom of component (maxY) is at baseline + descent
1797 // can expand component to fill region above baseline.
1805 int baseline; // baseline for the row, relative to cellY
1806 // Component baseline, includes insets.top
1811 baseline = cellHeight - layoutInfo.maxDescent[cons.tempY];
1815 baseline = layoutInfo.maxAscent[cons.tempY];
1820 // the baseline by asking for it again giving the
1825 // Component has a baseline, pad with top inset
1830 if (ascent >= 0 && ascent <= baseline) {
1831 // Components baseline fits within rows baseline.
1833 if (baseline + (r.height - ascent - cons.insets.top) <=
1843 baseline + ascent);
1850 baseline + ascent;
1864 // components ascent and baseline for row. Because ascent
1865 // includes the baseline
1866 r.y = cellY + baseline - ascent + cons.insets.top;
1882 delta) / 2 + cons.centerOffset != baseline) {
1887 r.y = cellY + baseline -
1907 * Positions the specified component above the baseline. That is
1908 * the bottom edge of the component will be aligned along the baseline.
1909 * If the row does not have a baseline, this centers the component.
1925 // inset, bottom edge on baseline.
1941 * Positions below the baseline.