Lines Matching defs:cons

1776     private void alignOnBaseline(GridBagConstraints cons, Rectangle r,
1778 if (cons.ascent >= 0) {
1779 if (cons.baselineResizeBehavior == Component.
1788 layoutInfo.maxDescent[cons.tempY + cons.tempHeight - 1] +
1789 cons.descent - cons.insets.bottom;
1790 if (!cons.isVerticallyResizable()) {
1793 r.y = maxY - cons.minHeight;
1794 r.height = cons.minHeight;
1800 r.height = maxY - cellY - cons.insets.top;
1807 int ascent = cons.ascent;
1808 if (layoutInfo.hasConstantDescent(cons.tempY)) {
1811 baseline = cellHeight - layoutInfo.maxDescent[cons.tempY];
1815 baseline = layoutInfo.maxAscent[cons.tempY];
1817 if (cons.baselineResizeBehavior == Component.
1828 ascent += cons.insets.top;
1833 if (baseline + (r.height - ascent - cons.insets.top) <=
1834 cellHeight - cons.insets.bottom) {
1838 else if (cons.isVerticallyResizable()) {
1842 r.width, cellHeight - cons.insets.bottom -
1845 ascent2 += cons.insets.top;
1849 r.height = cellHeight - cons.insets.bottom -
1858 ascent = cons.ascent;
1859 r.width = cons.minWidth;
1860 r.height = cons.minHeight;
1866 r.y = cellY + baseline - ascent + cons.insets.top;
1867 if (cons.isVerticallyResizable()) {
1868 switch(cons.baselineResizeBehavior) {
1870 r.height = Math.max(cons.minHeight,cellY + cellHeight -
1871 r.y - cons.insets.bottom);
1875 int upper = r.y - cellY - cons.insets.top;
1877 cons.minHeight - cons.insets.bottom;
1881 (cons.minHeight + cons.centerPadding +
1882 delta) / 2 + cons.centerOffset != baseline) {
1886 r.height = cons.minHeight + delta;
1888 (r.height + cons.centerPadding) / 2 -
1889 cons.centerOffset;
1902 centerVertically(cons, r, cellHeight);
1911 private void alignAboveBaseline(GridBagConstraints cons, Rectangle r,
1913 if (layoutInfo.hasBaseline(cons.tempY)) {
1915 if (layoutInfo.hasConstantDescent(cons.tempY)) {
1917 maxY = cellY + cellHeight - layoutInfo.maxDescent[cons.tempY];
1921 maxY = cellY + layoutInfo.maxAscent[cons.tempY];
1923 if (cons.isVerticallyResizable()) {
1926 r.y = cellY + cons.insets.top;
1931 r.height = cons.minHeight + cons.ipady;
1936 centerVertically(cons, r, cellHeight);
1943 private void alignBelowBaseline(GridBagConstraints cons, Rectangle r,
1945 if (layoutInfo.hasBaseline(cons.tempY)) {
1946 if (layoutInfo.hasConstantDescent(cons.tempY)) {
1948 r.y = cellY + cellHeight - layoutInfo.maxDescent[cons.tempY];
1952 r.y = cellY + layoutInfo.maxAscent[cons.tempY];
1954 if (cons.isVerticallyResizable()) {
1955 r.height = cellY + cellHeight - r.y - cons.insets.bottom;
1959 centerVertically(cons, r, cellHeight);
1963 private void centerVertically(GridBagConstraints cons, Rectangle r,
1965 if (!cons.isVerticallyResizable()) {
1966 r.y += Math.max(0, (cellHeight - cons.insets.top -
1967 cons.insets.bottom - cons.minHeight -
1968 cons.ipady) / 2);