Lines Matching refs:baseline

163  *   // the contents along the baseline. The first parallel group contains
184 * to align their components along the baseline. The first parallel
328 * their baseline.
639 * axis. A {@code ParallelGroup} created with a baseline alignment
643 * the behavior of baseline groups.
668 * elements along the baseline.
671 * @param anchorBaselineToTop whether the baseline is anchored to
1746 * In order to align a {@code SequentialGroup} along the baseline
1747 * of a baseline aligned {@code ParallelGroup} you need to specify
1749 * determine the baseline. The element used to calculate the
1750 * baseline is specified using one of the {@code add} methods that
1753 * baseline.
1776 * be used to calculate the baseline for this {@code Group}
1798 * be used to calculate the baseline for this {@code Group}
1825 * be used to calculate the baseline for this {@code Group}
2258 int baseline = baselineSpring.getBaseline();
2259 if (baseline >= 0) {
2263 return size + baseline;
2276 // Spring to use for baseline isn't resizable. In this case
2277 // baseline resize behavior can be determined based on how
2375 * four possible ways: along the baseline, centered, anchored to the
2379 * baseline must first decide where the baseline is
2380 * anchored. The baseline can either be anchored to the top, or
2382 * baseline and the beginning of the group can be a constant
2384 * baseline can be a constant distance. The possible choices
2391 * The baseline anchor may be explicitly specified by the
2393 * If not explicitly specified, the baseline will be anchored to
2394 * the bottom if all the elements with a baseline, and that are
2395 * aligned to the baseline, have a baseline resize behavior of
2396 * {@code CONSTANT_DESCENT}; otherwise the baseline is anchored to the top
2399 * Elements aligned to the baseline are resizable if they have have
2400 * a baseline resize behavior of {@code CONSTANT_ASCENT} or
2401 * {@code CONSTANT_DESCENT}. Elements with a baseline resize
2404 * The baseline is calculated based on the preferred height of each
2405 * of the elements that have a baseline. The baseline is
2409 * that do not have a baseline, or are not aligned along the baseline.
2410 * {@code maxAscent} is the maximum ascent (baseline) of all elements that
2411 * have a baseline and are aligned along the baseline.
2412 * {@code maxDescent} is the maximum descent (preferred height - baseline)
2413 * of all elements that have a baseline and are aligned along the baseline.
2415 * A {@code ParallelGroup} that aligns it's elements along the baseline
2417 * baseline group and use it along the horizontal axis an
2422 * Elements that are not aligned to the baseline and smaller than the size
2427 * <h3>Non-baseline {@code ParallelGroup}</h3>
2444 * To align elements along the baseline you {@code createBaselineGroup},
2446 * If the group was not created with a baseline alignment, and you attempt
2447 * to add an element specifying a baseline alignment, an
2652 * constituent {@code Spring}s along the baseline.
2655 // Whether or not all child springs have a baseline
2658 // max(spring.getBaseline()) of all springs aligned along the baseline
2659 // that have a baseline
2663 // springs aligned along the baseline that have a baseline
2669 // Whether the baseline is anchored to the top or the bottom.
2670 // If anchored to the top the baseline is always at prefAscent,
2671 // otherwise the baseline is at (height - prefDescent)
2674 // Whether or not the baseline has been calculated.
2700 // do baseline layout
2724 // calculate baseline
2732 int baseline = spring.getBaseline();
2733 if (baseline >= 0) {
2744 prefAscent = Math.max(prefAscent, baseline);
2746 getPreferredSize(VERTICAL) - baseline);
2767 int baseline;
2771 (baseline = spring.getBaseline()) >= 0) {
2778 springMax - baseline);
2784 springMax - springPref + baseline);
2792 // Not aligned along the baseline, or no baseline.
2810 int baseline;
2813 (baseline = spring.getBaseline()) >= 0) {
2820 minDescent = Math.max(springMin - baseline,
2823 minAscent = Math.max(baseline, minAscent);
2829 baseline - (springPref - springMin),
2832 minDescent = Math.max(springPref - baseline,
2839 minAscent = Math.max(baseline, minAscent);
2840 minDescent = Math.max(springPref - baseline,
2845 // Not aligned along the baseline, or no baseline.
2853 * Lays out springs that have a baseline along the baseline. All
2869 int baseline = spring.getBaseline();
2870 if (baseline >= 0) {
2877 y = origin + ascent - baseline;
2879 baseline) + baseline;
2883 springPref + baseline) +
2884 (springPref - baseline);
2886 (springPref - baseline) - height;
2889 y = origin + ascent - baseline;
2904 // Force the baseline to be calculated
2944 private int baseline = -1;
3052 baseline = -1;
3069 if (baseline == -1) {
3075 baseline = component.getBaseline(width, height);
3078 return baseline;