Lines Matching refs:tabPane

74             tabPane.addMouseMotionListener((MouseMotionListener)mouseListener);
81 if (tabPane.getFont() instanceof UIResource) {
84 tabPane.setFont(UIManager.getFont("TabbedPane.smallFont"));
90 tabPane.setOpaque(false);
132 final int tabPlacement = tabPane.getTabPlacement();
133 final int selectedIndex = tabPane.getSelectedIndex();
140 final boolean active = tabPane.isEnabled();
141 final boolean frameActive = AquaFocusHandler.isActive(tabPane);
142 final boolean isLeftToRight = tabPane.getComponentOrientation().isLeftToRight() || tabPlacement == LEFT || tabPlacement == RIGHT;
250 boolean shouldFlip = !AquaUtils.isLeftToRight(tabPane);
283 title = tabPane.getTitleAt(tabIndex);
296 final Font font = tabPane.getFont();
345 final Color color = tabPane.getForegroundAt(tabIndex);
347 // sja fix getTheme().setThemeTextColor(g, isSelected, isPressed && tracking, tabPane.isEnabledAt(tabIndex));
348 if (tabPane.isEnabledAt(tabIndex)) {
358 SwingUtilities2.drawString(tabPane, g2d, title, textRect.x, textRect.y + metrics.getAscent());
413 final int selectedIndex = tabPane.getSelectedIndex();
424 final int tabCount = tabPane.getTabCount();
455 final int selectedIndex = tabPane.getSelectedIndex();
458 painter.state.set(tabPane.hasFocus() && isSelected ? Focused.YES : Focused.NO);
459 painter.paint(g, tabPane, tabRect.x, tabRect.y, tabRect.width, tabRect.height);
463 final Color color = tabPane.getBackgroundAt(nonRectIndex);
476 switch (tabPane.getTabPlacement()) {
507 if (!tabPane.isEnabled()) return State.DISABLED;
630 final int width = tabPane.getWidth();
631 final int height = tabPane.getHeight();
632 final Insets insets = tabPane.getInsets();
656 if (tabPane.isOpaque()) {
657 g.setColor(tabPane.getBackground());
661 AquaGroupBorder.getTabbedPaneGroupBorder().paintBorder(tabPane, g, x, y, w, h);
666 final int width = tabPane.getWidth();
667 final int height = tabPane.getHeight();
668 final Insets insets = tabPane.getInsets();
669 final int tabPlacement = tabPane.getTabPlacement();
693 tabPane.repaint(x, y, w, h);
716 if (visibleTabState.getRightScrollTabRect().contains(p.x, p.y)) return -1; //tabPane.getTabCount();
719 final int tabCount = tabPane.getTabCount();
763 final int selected = tabPane.getSelectedIndex();
773 if (!isTabVisible(tabPane.getSelectedIndex())) popupSelectionChanged = true;
774 tabPane.revalidate();
775 tabPane.repaint();
784 if (isDefaultFocusReceiver(tabPane) && !hasAvoidedFirstFocus) {
943 for (int i = 0; i < tabPane.getTabCount(); i++) {
952 popup.show(tabPane, leftScrollTabRect.x - popupRect.width, leftScrollTabRect.y + 7);
955 popup.show(tabPane, rightScrollTabRect.x + rightScrollTabRect.width, rightScrollTabRect.y + 7);
964 tabPane.repaint(visibleTabState.getLeftScrollTabRect());
965 tabPane.repaint(visibleTabState.getRightScrollTabRect());
974 menuItem = new JMenuItem(tabPane.getTitleAt(i), tabPane.getIconAt(i));
992 final Color background = tabPane.getBackgroundAt(i);
997 menuItem.setForeground(tabPane.getForegroundAt(i));
999 if (!tabPane.isEnabledAt(i)) menuItem.setEnabled(false);
1005 tabPane.setSelectedIndex(fOffset);
1008 tabPane.invalidate();
1009 tabPane.repaint();
1048 visibleTabState.alignRectsRunFor(rects, tabPane.getSize(), tabPlacement, AquaUtils.isLeftToRight(tabPane));
1083 final Dimension size = tabPane.getSize();
1084 final Insets insets = tabPane.getInsets();
1127 final int selectedIndex = tabPane.getSelectedIndex();
1153 visibleTabState.relayoutForScrolling(rects, x, y, returnAt, selectedIndex, verticalTabRuns, tabCount, AquaUtils.isLeftToRight(tabPane));
1158 if (!AquaUtils.isLeftToRight(tabPane) && !verticalTabRuns) {
1206 final int placement = tabPane.getTabPlacement();
1210 for (int i = 0; i < tabPane.getTabCount(); i++) {
1215 final Insets insets = getTabInsets(tabPane.getTabPlacement(), i);
1216 final boolean isSeleceted = i == tabPane.getSelectedIndex();