Lines Matching refs:rects

119     protected Rectangle rects[] = new Rectangle[0];
794 if (j != selectedIndex && rects[j].intersects(clipRect)) {
795 paintTab(g, tabPlacement, rects, j, iconRect, textRect);
802 if (selectedIndex >= 0 && rects[selectedIndex].intersects(clipRect)) {
803 paintTab(g, tabPlacement, rects, selectedIndex, iconRect, textRect);
807 protected void paintTab(final Graphics g, final int tabPlacement, final Rectangle[] rects, final int tabIndex, final Rectangle iconRect, final Rectangle textRect) {
808 final Rectangle tabRect = rects[tabIndex];
837 paintFocusIndicator(g, tabPlacement, rects, tabIndex, iconRect, textRect, isSelected);
935 x = rects[tabIndex].x;
939 while (xx <= x + rects[tabIndex].width) {
950 y = rects[tabIndex].y;
953 while (yy <= y + rects[tabIndex].height) {
1022 final Rectangle tabRect = rects[tabIndex];
1040 final Rectangle tabRect = rects[tabIndex];
1058 protected void paintFocusIndicator(final Graphics g, final int tabPlacement, final Rectangle[] rects, final int tabIndex, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) {
1059 final Rectangle tabRect = rects[tabIndex];
1391 if (rects[i].contains(p.x, p.y)) {
1400 * of the JTabbedPane component. This is required because the tab rects
1419 dest.width = rects[tabIndex].width;
1420 dest.height = rects[tabIndex].height;
1427 dest.x = rects[tabIndex].x + vpp.x - viewp.x;
1428 dest.y = rects[tabIndex].y + vpp.y - viewp.y;
1431 dest.x = rects[tabIndex].x;
1432 dest.y = rects[tabIndex].y;
1443 final int tabCount = Math.min(rects.length, tabPane.getTabCount());
1455 minLoc = rects[current].x;
1456 maxLoc = minLoc + rects[current].width;
1458 minLoc = rects[current].y;
1459 maxLoc = minLoc + rects[current].height;
1509 final int rectArrayLen = rects.length;
1512 System.arraycopy(rects, 0, tempRectArray, 0, Math.min(rectArrayLen, tabCount));
1513 rects = tempRectArray;
1515 rects[rectIndex] = new Rectangle();
1814 final Rectangle r = rects[tabIndex];
2437 rect = rects[i];
2442 rect.x = rects[i - 1].x + rects[i - 1].width;
2470 rect.y = rects[i - 1].y + rects[i - 1].height;
2521 rect = rects[j];
2535 rect = rects[j];
2558 rects[i].x = rightMargin - rects[i].x - rects[i].width;
2600 end = rects[last].x + rects[last].width;
2603 end = rects[last].y + rects[last].height;
2614 rects[prevLast].x = start;
2616 rects[prevLast].y = start;
2620 rects[i].x = rects[i - 1].x + rects[i - 1].width;
2622 rects[i].y = rects[i - 1].y + rects[i - 1].height;
2644 final Rectangle lastRect = rects[end];
2646 final int runWidth = (lastRect.x + lastRect.width) - rects[start].x;
2651 final Rectangle pastRect = rects[j];
2653 pastRect.x = rects[j - 1].x + rects[j - 1].width;
2659 final int runHeight = (lastRect.y + lastRect.height) - rects[start].y;
2664 final Rectangle pastRect = rects[j];
2666 pastRect.y = rects[j - 1].y + rects[j - 1].height;
2677 final Rectangle selRect = rects[selectedIndex];
2855 final int totalTabHeight = rects[tabCount - 1].y + rects[tabCount - 1].height;
2869 final int totalTabWidth = rects[tabCount - 1].x + rects[tabCount - 1].width;
2894 final int totalTabHeight = rects[tabCount - 1].y + rects[tabCount - 1].height;
2905 final int totalTabWidth = rects[tabCount - 1].x + rects[tabCount - 1].width;
2937 for (int i = 0; i < rects.length; i++) {
2938 final Rectangle tabRect = rects[i];
3000 rect = rects[i];
3005 rect.x = rects[i - 1].x + rects[i - 1].width;
3022 rect.y = rects[i - 1].y + rects[i - 1].height;
3049 rects[i].x = rightMargin - rects[i].x - rects[i].width;
3131 tabViewPosition.x = leadingTabIndex == 0 ? 0 : rects[leadingTabIndex].x;
3142 tabViewPosition.y = leadingTabIndex == 0 ? 0 : rects[leadingTabIndex].y;
3172 if (rects[leadingTabIndex].x < viewRect.x) {
3178 if (rects[leadingTabIndex].y < viewRect.y) {
3266 final Rectangle croppedRect = rects[tabScroller.croppedEdge.getTabIndex()];
3360 if (index < rects.length && index != -1) {
3361 tabScroller.tabPanel.scrollRectToVisible((Rectangle)rects[index].clone());
3644 final Rectangle tabRect = rects[tabIndex];