Lines Matching defs:cons

1798     private void alignOnBaseline(GridBagConstraints cons, Rectangle r,
1800 if (cons.ascent >= 0) {
1801 if (cons.baselineResizeBehavior == Component.
1810 layoutInfo.maxDescent[cons.tempY + cons.tempHeight - 1] +
1811 cons.descent - cons.insets.bottom;
1812 if (!cons.isVerticallyResizable()) {
1815 r.y = maxY - cons.minHeight;
1816 r.height = cons.minHeight;
1822 r.height = maxY - cellY - cons.insets.top;
1829 int ascent = cons.ascent;
1830 if (layoutInfo.hasConstantDescent(cons.tempY)) {
1833 baseline = cellHeight - layoutInfo.maxDescent[cons.tempY];
1837 baseline = layoutInfo.maxAscent[cons.tempY];
1839 if (cons.baselineResizeBehavior == Component.
1850 ascent += cons.insets.top;
1855 if (baseline + (r.height - ascent - cons.insets.top) <=
1856 cellHeight - cons.insets.bottom) {
1860 else if (cons.isVerticallyResizable()) {
1864 r.width, cellHeight - cons.insets.bottom -
1867 ascent2 += cons.insets.top;
1871 r.height = cellHeight - cons.insets.bottom -
1880 ascent = cons.ascent;
1881 r.width = cons.minWidth;
1882 r.height = cons.minHeight;
1888 r.y = cellY + baseline - ascent + cons.insets.top;
1889 if (cons.isVerticallyResizable()) {
1890 switch(cons.baselineResizeBehavior) {
1892 r.height = Math.max(cons.minHeight,cellY + cellHeight -
1893 r.y - cons.insets.bottom);
1897 int upper = r.y - cellY - cons.insets.top;
1899 cons.minHeight - cons.insets.bottom;
1903 (cons.minHeight + cons.centerPadding +
1904 delta) / 2 + cons.centerOffset != baseline) {
1908 r.height = cons.minHeight + delta;
1910 (r.height + cons.centerPadding) / 2 -
1911 cons.centerOffset;
1924 centerVertically(cons, r, cellHeight);
1933 private void alignAboveBaseline(GridBagConstraints cons, Rectangle r,
1935 if (layoutInfo.hasBaseline(cons.tempY)) {
1937 if (layoutInfo.hasConstantDescent(cons.tempY)) {
1939 maxY = cellY + cellHeight - layoutInfo.maxDescent[cons.tempY];
1943 maxY = cellY + layoutInfo.maxAscent[cons.tempY];
1945 if (cons.isVerticallyResizable()) {
1948 r.y = cellY + cons.insets.top;
1953 r.height = cons.minHeight + cons.ipady;
1958 centerVertically(cons, r, cellHeight);
1965 private void alignBelowBaseline(GridBagConstraints cons, Rectangle r,
1967 if (layoutInfo.hasBaseline(cons.tempY)) {
1968 if (layoutInfo.hasConstantDescent(cons.tempY)) {
1970 r.y = cellY + cellHeight - layoutInfo.maxDescent[cons.tempY];
1974 r.y = cellY + layoutInfo.maxAscent[cons.tempY];
1976 if (cons.isVerticallyResizable()) {
1977 r.height = cellY + cellHeight - r.y - cons.insets.bottom;
1981 centerVertically(cons, r, cellHeight);
1985 private void centerVertically(GridBagConstraints cons, Rectangle r,
1987 if (!cons.isVerticallyResizable()) {
1988 r.y += Math.max(0, (cellHeight - cons.insets.top -
1989 cons.insets.bottom - cons.minHeight -
1990 cons.ipady) / 2);