Lines Matching refs:width

592     public int getBaseline(final JComponent c, final int width, final int height) {
593 super.getBaseline(c, width, height);
659 return c.getBaseline(pref.width, pref.height) + (cellHeight - pref.height) / 2 + tabInsets.top;
813 paintTabBackground(g, tabPlacement, tabIndex, tabRect.x, tabRect.y, tabRect.width, tabRect.height, isSelected);
816 paintTabBorder(g, tabPlacement, tabIndex, tabRect.x, tabRect.y, tabRect.width, tabRect.height, isSelected);
860 * subtracting xCropLen[i] from (tab.x + tab.width) and adding yCroplen[i]
879 rlen = tabRect.width;
881 end = tabRect.x + tabRect.width;
890 ostart = tabRect.x + tabRect.width;
939 while (xx <= x + rects[tabIndex].width) {
1034 nudge = tabRect.width % 2;
1067 w = tabRect.width - 5;
1073 w = tabRect.width - 5;
1079 w = tabRect.width - 6;
1086 w = tabRect.width - 6;
1174 final int width = tabPane.getWidth();
1181 int w = width - insets.right - insets.left;
1247 if (selRect.x + selRect.width < x + w - 2) {
1248 g.drawLine(selRect.x + selRect.width, y, x + w - 2, y);
1265 if (tabPlacement != LEFT || selectedIndex < 0 || (selRect.x + selRect.width + 1 < x) || (selRect.y < y || selRect.y > y + h)) {
1294 if (selRect.x + selRect.width < x + w - 2) {
1296 g.drawLine(selRect.x + selRect.width, y + h - 2, x + w - 2, y + h - 2);
1298 g.drawLine(selRect.x + selRect.width, y + h - 1, x + w - 1, y + h - 1);
1419 dest.width = rects[tabIndex].width;
1456 maxLoc = minLoc + rects[current].width;
1626 int width = tabInsets.left + tabInsets.right + 3;
1629 width += tabComponent.getPreferredSize().width;
1633 width += icon.getIconWidth() + textIconGap;
1638 width += (int)v.getPreferredSpan(View.X_AXIS);
1642 width += SwingUtilities2.stringWidth(tabPane, metrics, title);
1645 return width;
1818 newIndex = tabForCoordinate(tabPane, r.x + r.width / 2 + offset, r.y + r.height / 2);
1823 newIndex = tabForCoordinate(tabPane, r.x + r.width / 2, r.y + r.height / 2 + offset);
2137 int width = 0;
2152 cWidth = Math.max(size.width, cWidth);
2157 width += cWidth;
2169 width += tabExtent;
2174 width = Math.max(width, calculateMaxTabWidth(tabPlacement));
2175 tabExtent = preferredTabAreaHeight(tabPlacement, width - tabAreaInsets.left - tabAreaInsets.right);
2178 return new Dimension(width + insets.left + insets.right + contentInsets.left + contentInsets.right, height + insets.bottom + insets.top + contentInsets.top + contentInsets.bottom);
2182 protected int preferredTabAreaHeight(final int tabPlacement, final int width) {
2195 if (x != 0 && x + tabWidth > width) {
2312 cw = bounds.width - totalTabWidth - insets.left - insets.right - contentInsets.left - contentInsets.right;
2319 final int tabContainerWidth = totalTabWidth == 0 ? bounds.width : totalTabWidth + insets.left + insets.right + contentInsets.left + contentInsets.right;
2327 tabContainerX = bounds.width - tabContainerWidth;
2369 final int outerWidth = rect.width - insets.left - insets.right;
2372 final int x = outerX + (outerWidth - preferredSize.width) / 2;
2376 c.setBounds(x + getTabLabelShiftX(tabPlacement, i, isSeleceted), y + getTabLabelShiftY(tabPlacement, i, isSeleceted), preferredSize.width, preferredSize.height);
2406 x = size.width - insets.right - tabAreaInsets.right - maxTabWidth;
2414 returnAt = size.width - (insets.right + tabAreaInsets.right);
2421 returnAt = size.width - (insets.right + tabAreaInsets.right);
2442 rect.x = rects[i - 1].x + rects[i - 1].width;
2449 rect.width = calculateTabWidth(tabPlacement, i, metrics);
2450 maxTabWidth = Math.max(maxTabWidth, rect.width);
2455 if (rect.x != 2 + insets.left && rect.x + rect.width > returnAt) {
2493 rect.width = maxTabWidth/* - 2*/;
2556 final int rightMargin = size.width - (insets.right + tabAreaInsets.right);
2558 rects[i].x = rightMargin - rects[i].x - rects[i].width;
2600 end = rects[last].x + rects[last].width;
2620 rects[i].x = rects[i - 1].x + rects[i - 1].width;
2646 final int runWidth = (lastRect.x + lastRect.width) - rects[start].x;
2647 final int deltaWidth = max - (lastRect.x + lastRect.width);
2653 pastRect.x = rects[j - 1].x + rects[j - 1].width;
2655 pastRect.width += Math.round(pastRect.width * factor);
2657 lastRect.width = max - lastRect.x;
2680 selRect.width += (padInsets.left + padInsets.right);
2703 selRect.width -= left;
2705 final int right = (selRect.x + selRect.width) + insets.right - size.width;
2707 selRect.width -= right;
2717 protected int preferredTabAreaHeight(final int tabPlacement, final int width) {
2799 cw = bounds.width - insets.left - insets.right - tw - contentInsets.left - contentInsets.right;
2806 tx = bounds.width - insets.right - tw;
2812 cw = bounds.width - insets.left - insets.right - tw - contentInsets.left - contentInsets.right;
2817 tw = bounds.width - insets.left - insets.right;
2825 cw = bounds.width - insets.left - insets.right - contentInsets.left - contentInsets.right;
2831 tw = bounds.width - insets.left - insets.right;
2839 cw = bounds.width - insets.left - insets.right - contentInsets.left - contentInsets.right;
2869 final int totalTabWidth = rects[tabCount - 1].x + rects[tabCount - 1].width;
2872 vw = (tw > 2 * butSize.width) ? tw - 2 * butSize.width : 0;
2887 final int bw = bsize.width;
2897 bx = (tabPlacement == LEFT ? tx + tw - bsize.width : tx);
2905 final int totalTabWidth = rects[tabCount - 1].x + rects[tabCount - 1].width;
2909 bx = (child == tabScroller.scrollForwardButton) ? bounds.width - insets.left - bsize.width : bounds.width - insets.left - 2 * bsize.width;
2950 cropline = viewRect.x + viewRect.width;
2951 if ((tabRect.x < cropline - 1) && (tabRect.x + tabRect.width > cropline)) {
3005 rect.x = rects[i - 1].x + rects[i - 1].width;
3012 rect.width = calculateTabWidth(tabPlacement, i, metrics);
3013 totalWidth = rect.x + rect.width;
3014 maxTabWidth = Math.max(maxTabWidth, rect.width);
3034 rect.width = maxTabWidth/* - 2*/;
3047 final int rightMargin = size.width - (insets.right + tabAreaInsets.right);
3049 rects[i].x = rightMargin - rects[i].x - rects[i].width;
3105 if (viewRect.width >= viewSize.width - viewRect.x) {
3133 if ((viewSize.width - tabViewPosition.x) < viewRect.width) {
3136 final Dimension extentSize = new Dimension(viewSize.width - tabViewPosition.x, viewRect.height);
3147 final Dimension extentSize = new Dimension(viewRect.width, viewSize.height - tabViewPosition.y);
3187 tabPane.repaint(vpRect.x + vpRect.width, vpRect.y, contentInsets.left, vpRect.height);
3197 tabPane.repaint(vpRect.x, vpRect.y - contentInsets.bottom, vpRect.width, contentInsets.bottom);
3199 scrollForwardButton.setEnabled(leadingTabIndex < tabCount - 1 && viewSize.width - viewRect.x > viewRect.width);
3203 tabPane.repaint(vpRect.x, vpRect.y + vpRect.height, vpRect.width, contentInsets.top);
3205 scrollForwardButton.setEnabled(leadingTabIndex < tabCount - 1 && viewSize.width - viewRect.x > viewRect.width);