< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java

Print this page

        

*** 260,272 **** this.tabPane = null; } /** ! * Invoked by <code>installUI</code> to create * a layout manager object to manage ! * the <code>JTabbedPane</code>. * * @return a layout manager object * * @see TabbedPaneLayout * @see javax.swing.JTabbedPane#getTabLayoutPolicy --- 260,272 ---- this.tabPane = null; } /** ! * Invoked by {@code installUI} to create * a layout manager object to manage ! * the {@code JTabbedPane}. * * @return a layout manager object * * @see TabbedPaneLayout * @see javax.swing.JTabbedPane#getTabLayoutPolicy
*** 622,644 **** mnemonicInputMap); } /** * Sets the tab the mouse is over by location. This is a cover method ! * for <code>setRolloverTab(tabForCoordinate(x, y, false))</code>. */ private void setRolloverTab(int x, int y) { // NOTE: // This calls in with false otherwise it could trigger a validate, // which should NOT happen if the user is only dragging the // mouse around. setRolloverTab(tabForCoordinate(tabPane, x, y, false)); } /** ! * Sets the tab the mouse is currently over to <code>index</code>. ! * <code>index</code> will be -1 if the mouse is no longer over any * tab. No checking is done to ensure the passed in index identifies a * valid tab. * * @param index Index of the tab the mouse is over. * @since 1.5 --- 622,644 ---- mnemonicInputMap); } /** * Sets the tab the mouse is over by location. This is a cover method ! * for {@code setRolloverTab(tabForCoordinate(x, y, false))}. */ private void setRolloverTab(int x, int y) { // NOTE: // This calls in with false otherwise it could trigger a validate, // which should NOT happen if the user is only dragging the // mouse around. setRolloverTab(tabForCoordinate(tabPane, x, y, false)); } /** ! * Sets the tab the mouse is currently over to {@code index}. ! * {@code index} will be -1 if the mouse is no longer over any * tab. No checking is done to ensure the passed in index identifies a * valid tab. * * @param index Index of the tab the mouse is over. * @since 1.5
*** 769,779 **** getBaselineOffset(); } /** * Returns the amount the baseline is offset by. This is typically ! * the same as <code>getTabLabelShiftY</code>. * * @return amount to offset the baseline by * @since 1.6 */ protected int getBaselineOffset() { --- 769,779 ---- getBaselineOffset(); } /** * Returns the amount the baseline is offset by. This is typically ! * the same as {@code getTabLabelShiftY}. * * @return amount to offset the baseline by * @since 1.6 */ protected int getBaselineOffset() {
*** 861,874 **** } /** * Paints the tabs in the tab area. * Invoked by paint(). ! * The graphics parameter must be a valid <code>Graphics</code> * object. Tab placement may be either: ! * <code>JTabbedPane.TOP</code>, <code>JTabbedPane.BOTTOM</code>, ! * <code>JTabbedPane.LEFT</code>, or <code>JTabbedPane.RIGHT</code>. * The selected index must be a valid tabbed pane tab index (0 to * tab count - 1, inclusive) or -1 if no tab is currently selected. * The handling of invalid parameters is unspecified. * * @param g the graphics object to use for rendering --- 861,874 ---- } /** * Paints the tabs in the tab area. * Invoked by paint(). ! * The graphics parameter must be a valid {@code Graphics} * object. Tab placement may be either: ! * {@code JTabbedPane.TOP}, {@code JTabbedPane.BOTTOM}, ! * {@code JTabbedPane.LEFT}, or {@code JTabbedPane.RIGHT}. * The selected index must be a valid tabbed pane tab index (0 to * tab count - 1, inclusive) or -1 if no tab is currently selected. * The handling of invalid parameters is unspecified. * * @param g the graphics object to use for rendering
*** 1710,1720 **** * This method should be used whenever the tab rectangle must be relative * to the JTabbedPane itself and the result should be placed in a * designated Rectangle object (rather than instantiating and returning * a new Rectangle each time). The tab index parameter must be a valid * tabbed pane tab index (0 to tab count - 1, inclusive). The destination ! * rectangle parameter must be a valid <code>Rectangle</code> instance. * The handling of invalid parameters is unspecified. * * @param tabIndex the index of the tab * @param dest the rectangle where the result should be placed * @return the resulting rectangle --- 1710,1720 ---- * This method should be used whenever the tab rectangle must be relative * to the JTabbedPane itself and the result should be placed in a * designated Rectangle object (rather than instantiating and returning * a new Rectangle each time). The tab index parameter must be a valid * tabbed pane tab index (0 to tab count - 1, inclusive). The destination ! * rectangle parameter must be a valid {@code Rectangle} instance. * The handling of invalid parameters is unspecified. * * @param tabIndex the index of the tab * @param dest the rectangle where the result should be placed * @return the resulting rectangle
< prev index next >