equal
deleted
inserted
replaced
697 if (index == -1 || index == -2) return true; |
697 if (index == -1 || index == -2) return true; |
698 for (int i = 0; i < visibleTabState.getTotal(); i++) { |
698 for (int i = 0; i < visibleTabState.getTotal(); i++) { |
699 if (visibleTabState.getIndex(i) == index) return true; |
699 if (visibleTabState.getIndex(i) == index) return true; |
700 } |
700 } |
701 return false; |
701 return false; |
|
702 } |
|
703 |
|
704 /** |
|
705 * Returns the bounds of the specified tab index. The bounds are |
|
706 * with respect to the JTabbedPane's coordinate space. If the tab at this |
|
707 * index is not currently visible in the UI, then returns null. |
|
708 */ |
|
709 @Override |
|
710 public Rectangle getTabBounds(final JTabbedPane pane, final int i) { |
|
711 if (visibleTabState.needsScrollTabs() |
|
712 && (visibleTabState.isBefore(i) || visibleTabState.isAfter(i))) { |
|
713 return null; |
|
714 } |
|
715 return super.getTabBounds(pane, i); |
702 } |
716 } |
703 |
717 |
704 /** |
718 /** |
705 * Returns the tab index which intersects the specified point |
719 * Returns the tab index which intersects the specified point |
706 * in the JTabbedPane's coordinate space. |
720 * in the JTabbedPane's coordinate space. |