javax.swing.plaf.basic
Class BasicTabbedPaneUI

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI 
      extended by javax.swing.plaf.TabbedPaneUI sample code for javax.swing.plaf.TabbedPaneUI definition code for javax.swing.plaf.TabbedPaneUI 
          extended by javax.swing.plaf.basic.BasicTabbedPaneUI
All Implemented Interfaces:
SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants
Direct Known Subclasses:
MetalTabbedPaneUI sample code for javax.swing.plaf.metal.MetalTabbedPaneUI definition code for javax.swing.plaf.metal.MetalTabbedPaneUI

public class BasicTabbedPaneUI
extends TabbedPaneUI sample code for javax.swing.plaf.TabbedPaneUI definition code for javax.swing.plaf.TabbedPaneUI
implements SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants

A Basic L&F implementation of TabbedPaneUI.


Nested Class Summary
 class BasicTabbedPaneUI.FocusHandler sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.FocusHandler definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.FocusHandler
          This class should be treated as a "protected" inner class.
 class BasicTabbedPaneUI.MouseHandler sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.MouseHandler definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.MouseHandler
          This class should be treated as a "protected" inner class.
 class BasicTabbedPaneUI.PropertyChangeHandler sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.PropertyChangeHandler definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.PropertyChangeHandler
          This class should be treated as a "protected" inner class.
 class BasicTabbedPaneUI.TabbedPaneLayout sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
          This class should be treated as a "protected" inner class.
 class BasicTabbedPaneUI.TabSelectionHandler sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.TabSelectionHandler definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.TabSelectionHandler
          This class should be treated as a "protected" inner class.
 
Field Summary
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle calcRect sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calcRect definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calcRect
          A rectangle used for general layout calculations in order to avoid constructing many new Rectangles on the fly.
protected  Insets sample code for java.awt.Insets definition code for java.awt.Insets contentBorderInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.contentBorderInsets definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.contentBorderInsets
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color darkShadow sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.darkShadow definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.darkShadow
           
protected  KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke downKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.downKey definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.downKey
          Deprecated. As of Java 2 platform v1.3.
protected  Color sample code for java.awt.Color definition code for java.awt.Color focus sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.focus definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.focus
           
protected  FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener focusListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.focusListener definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.focusListener
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color highlight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.highlight definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.highlight
           
protected  KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke leftKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.leftKey definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.leftKey
          Deprecated. As of Java 2 platform v1.3.
protected  Color sample code for java.awt.Color definition code for java.awt.Color lightHighlight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.lightHighlight definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.lightHighlight
           
protected  int maxTabHeight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.maxTabHeight definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.maxTabHeight
           
protected  int maxTabWidth sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.maxTabWidth definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.maxTabWidth
           
protected  MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener mouseListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.mouseListener definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.mouseListener
           
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener propertyChangeListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.propertyChangeListener definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.propertyChangeListener
           
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle [] rects sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.rects definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.rects
           
protected  KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke rightKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.rightKey definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.rightKey
          Deprecated. As of Java 2 platform v1.3.
protected  int runCount sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.runCount definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.runCount
           
protected  int selectedRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectedRun definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectedRun
           
protected  Insets sample code for java.awt.Insets definition code for java.awt.Insets selectedTabPadInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectedTabPadInsets definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectedTabPadInsets
           
protected  Color sample code for java.awt.Color definition code for java.awt.Color shadow sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.shadow definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.shadow
           
protected  Insets sample code for java.awt.Insets definition code for java.awt.Insets tabAreaInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabAreaInsets definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabAreaInsets
           
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener tabChangeListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabChangeListener definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabChangeListener
           
protected  Insets sample code for java.awt.Insets definition code for java.awt.Insets tabInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabInsets definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabInsets
           
protected  JTabbedPane sample code for javax.swing.JTabbedPane definition code for javax.swing.JTabbedPane tabPane sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabPane definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabPane
           
protected  int tabRunOverlay sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabRunOverlay definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabRunOverlay
           
protected  int[] tabRuns sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabRuns definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabRuns
           
protected  int textIconGap sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.textIconGap definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.textIconGap
           
protected  KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke upKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.upKey definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.upKey
          Deprecated. As of Java 2 platform v1.3.
 
Fields inherited from interface javax.swing.SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants
BOTTOM sample code for javax.swing.SwingConstants.BOTTOM definition code for javax.swing.SwingConstants.BOTTOM , CENTER sample code for javax.swing.SwingConstants.CENTER definition code for javax.swing.SwingConstants.CENTER , EAST sample code for javax.swing.SwingConstants.EAST definition code for javax.swing.SwingConstants.EAST , HORIZONTAL sample code for javax.swing.SwingConstants.HORIZONTAL definition code for javax.swing.SwingConstants.HORIZONTAL , LEADING sample code for javax.swing.SwingConstants.LEADING definition code for javax.swing.SwingConstants.LEADING , LEFT sample code for javax.swing.SwingConstants.LEFT definition code for javax.swing.SwingConstants.LEFT , NEXT sample code for javax.swing.SwingConstants.NEXT definition code for javax.swing.SwingConstants.NEXT , NORTH sample code for javax.swing.SwingConstants.NORTH definition code for javax.swing.SwingConstants.NORTH , NORTH_EAST sample code for javax.swing.SwingConstants.NORTH_EAST definition code for javax.swing.SwingConstants.NORTH_EAST , NORTH_WEST sample code for javax.swing.SwingConstants.NORTH_WEST definition code for javax.swing.SwingConstants.NORTH_WEST , PREVIOUS sample code for javax.swing.SwingConstants.PREVIOUS definition code for javax.swing.SwingConstants.PREVIOUS , RIGHT sample code for javax.swing.SwingConstants.RIGHT definition code for javax.swing.SwingConstants.RIGHT , SOUTH sample code for javax.swing.SwingConstants.SOUTH definition code for javax.swing.SwingConstants.SOUTH , SOUTH_EAST sample code for javax.swing.SwingConstants.SOUTH_EAST definition code for javax.swing.SwingConstants.SOUTH_EAST , SOUTH_WEST sample code for javax.swing.SwingConstants.SOUTH_WEST definition code for javax.swing.SwingConstants.SOUTH_WEST , TOP sample code for javax.swing.SwingConstants.TOP definition code for javax.swing.SwingConstants.TOP , TRAILING sample code for javax.swing.SwingConstants.TRAILING definition code for javax.swing.SwingConstants.TRAILING , VERTICAL sample code for javax.swing.SwingConstants.VERTICAL definition code for javax.swing.SwingConstants.VERTICAL , WEST sample code for javax.swing.SwingConstants.WEST definition code for javax.swing.SwingConstants.WEST
 
Constructor Summary
BasicTabbedPaneUI sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.BasicTabbedPaneUI() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.BasicTabbedPaneUI() ()
           
 
Method Summary
protected  void assureRectsCreated sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.assureRectsCreated(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.assureRectsCreated(int) (int tabCount)
           
protected  int calculateMaxTabHeight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabHeight(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabHeight(int) (int tabPlacement)
           
protected  int calculateMaxTabWidth sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabWidth(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabWidth(int) (int tabPlacement)
           
protected  int calculateTabAreaHeight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabAreaHeight(int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabAreaHeight(int, int, int) (int tabPlacement, int horizRunCount, int maxTabHeight)
           
protected  int calculateTabAreaWidth sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabAreaWidth(int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabAreaWidth(int, int, int) (int tabPlacement, int vertRunCount, int maxTabWidth)
           
protected  int calculateTabHeight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabHeight(int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabHeight(int, int, int) (int tabPlacement, int tabIndex, int fontHeight)
           
protected  int calculateTabWidth sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabWidth(int, int, java.awt.FontMetrics) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabWidth(int, int, java.awt.FontMetrics) (int tabPlacement, int tabIndex, FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  metrics)
           
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener createChangeListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createChangeListener() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createChangeListener() ()
           
protected  FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener createFocusListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createFocusListener() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createFocusListener() ()
           
protected  LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager createLayoutManager sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createLayoutManager() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createLayoutManager() ()
          Invoked by installUI to create a layout manager object to manage the JTabbedPane.
protected  MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener createMouseListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createMouseListener() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createMouseListener() ()
           
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createPropertyChangeListener() ()
           
protected  JButton sample code for javax.swing.JButton definition code for javax.swing.JButton createScrollButton sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createScrollButton(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createScrollButton(int) (int direction)
          Creates and returns a JButton that will provide the user with a way to scroll the tabs in a particular direction.
static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI createUI sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
           
protected  void expandTabRunsArray sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.expandTabRunsArray() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.expandTabRunsArray() ()
           
protected  Insets sample code for java.awt.Insets definition code for java.awt.Insets getContentBorderInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getContentBorderInsets(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getContentBorderInsets(int) (int tabPlacement)
           
protected  int getFocusIndex sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getFocusIndex() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getFocusIndex() ()
          Returns the index of the tab that has focus.
protected  FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics getFontMetrics sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getFontMetrics() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getFontMetrics() ()
           
protected  Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getIconForTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getIconForTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getIconForTab(int) (int tabIndex)
           
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMaximumSize sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getMaximumSize(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Returns the specified component's maximum size appropriate for the look and feel.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMinimumSize sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getMinimumSize(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Returns the specified component's minimum size appropriate for the look and feel.
protected  int getNextTabIndex sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabIndex(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabIndex(int) (int base)
           
protected  int getNextTabIndexInRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabIndexInRun(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabIndexInRun(int, int) (int tabCount, int base)
           
protected  int getNextTabRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabRun(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabRun(int) (int baseRun)
           
protected  int getPreviousTabIndex sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabIndex(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabIndex(int) (int base)
           
protected  int getPreviousTabIndexInRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabIndexInRun(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabIndexInRun(int, int) (int tabCount, int base)
           
protected  int getPreviousTabRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabRun(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabRun(int) (int baseRun)
           
protected  int getRolloverTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getRolloverTab() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getRolloverTab() ()
          Returns the tab the mouse is currently over, or -1 if the mouse is no longer over any tab.
protected  int getRunForTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getRunForTab(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getRunForTab(int, int) (int tabCount, int tabIndex)
           
protected  Insets sample code for java.awt.Insets definition code for java.awt.Insets getSelectedTabPadInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getSelectedTabPadInsets(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getSelectedTabPadInsets(int) (int tabPlacement)
           
protected  Insets sample code for java.awt.Insets definition code for java.awt.Insets getTabAreaInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabAreaInsets(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabAreaInsets(int) (int tabPlacement)
           
protected  Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getTabBounds sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(int, java.awt.Rectangle) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(int, java.awt.Rectangle) (int tabIndex, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  dest)
          Returns the bounds of the specified tab in the coordinate space of the JTabbedPane component.
 Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getTabBounds sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(javax.swing.JTabbedPane, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(javax.swing.JTabbedPane, int) (JTabbedPane sample code for javax.swing.JTabbedPane definition code for javax.swing.JTabbedPane  pane, int i)
          Returns the bounds of the specified tab index.
protected  Insets sample code for java.awt.Insets definition code for java.awt.Insets getTabInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabInsets(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabInsets(int, int) (int tabPlacement, int tabIndex)
           
protected  int getTabLabelShiftX sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabLabelShiftX(int, int, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabLabelShiftX(int, int, boolean) (int tabPlacement, int tabIndex, boolean isSelected)
           
protected  int getTabLabelShiftY sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabLabelShiftY(int, int, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabLabelShiftY(int, int, boolean) (int tabPlacement, int tabIndex, boolean isSelected)
           
 int getTabRunCount sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunCount(javax.swing.JTabbedPane) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunCount(javax.swing.JTabbedPane) (JTabbedPane sample code for javax.swing.JTabbedPane definition code for javax.swing.JTabbedPane  pane)
           
protected  int getTabRunIndent sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunIndent(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunIndent(int, int) (int tabPlacement, int run)
           
protected  int getTabRunOffset sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunOffset(int, int, int, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunOffset(int, int, int, boolean) (int tabPlacement, int tabCount, int tabIndex, boolean forward)
           
protected  int getTabRunOverlay sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunOverlay(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunOverlay(int) (int tabPlacement)
           
protected  View sample code for javax.swing.text.View definition code for javax.swing.text.View getTextViewForTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTextViewForTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTextViewForTab(int) (int tabIndex)
          Returns the text View object required to render stylized text (HTML) for the specified tab or null if no specialized text rendering is needed for this tab.
protected  Component sample code for java.awt.Component definition code for java.awt.Component getVisibleComponent sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getVisibleComponent() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getVisibleComponent() ()
           
protected  void installComponents sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.installComponents() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.installComponents() ()
          Creates and installs any required subcomponents for the JTabbedPane.
protected  void installDefaults sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.installDefaults() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.installDefaults() ()
           
protected  void installKeyboardActions sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.installKeyboardActions() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.installKeyboardActions() ()
           
protected  void installListeners sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.installListeners() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.installListeners() ()
           
 void installUI sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.installUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Configures the specified component appropriate for the look and feel.
protected  int lastTabInRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.lastTabInRun(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.lastTabInRun(int, int) (int tabCount, int run)
           
protected  void layoutLabel sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.layoutLabel(int, java.awt.FontMetrics, int, java.lang.String, javax.swing.Icon, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.layoutLabel(int, java.awt.FontMetrics, int, java.lang.String, javax.swing.Icon, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, boolean) (int tabPlacement, FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  metrics, int tabIndex, String sample code for java.lang.String definition code for java.lang.String  title, Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tabRect, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  iconRect, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  textRect, boolean isSelected)
           
protected  void navigateSelectedTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.navigateSelectedTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.navigateSelectedTab(int) (int direction)
           
 void paint sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paint(java.awt.Graphics, javax.swing.JComponent) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Paints the specified component appropriate for the look and feel.
protected  void paintContentBorder sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorder(java.awt.Graphics, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorder(java.awt.Graphics, int, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, int selectedIndex)
           
protected  void paintContentBorderBottomEdge sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderBottomEdge(java.awt.Graphics, int, int, int, int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderBottomEdge(java.awt.Graphics, int, int, int, int, int, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void paintContentBorderLeftEdge sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderLeftEdge(java.awt.Graphics, int, int, int, int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderLeftEdge(java.awt.Graphics, int, int, int, int, int, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void paintContentBorderRightEdge sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderRightEdge(java.awt.Graphics, int, int, int, int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderRightEdge(java.awt.Graphics, int, int, int, int, int, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void paintContentBorderTopEdge sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderTopEdge(java.awt.Graphics, int, int, int, int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderTopEdge(java.awt.Graphics, int, int, int, int, int, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void paintFocusIndicator sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintFocusIndicator(java.awt.Graphics, int, java.awt.Rectangle[], int, java.awt.Rectangle, java.awt.Rectangle, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintFocusIndicator(java.awt.Graphics, int, java.awt.Rectangle[], int, java.awt.Rectangle, java.awt.Rectangle, boolean) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle [] rects, int tabIndex, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  iconRect, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  textRect, boolean isSelected)
           
protected  void paintIcon sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintIcon(java.awt.Graphics, int, int, javax.swing.Icon, java.awt.Rectangle, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintIcon(java.awt.Graphics, int, int, javax.swing.Icon, java.awt.Rectangle, boolean) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, int tabIndex, Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  iconRect, boolean isSelected)
           
protected  void paintTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTab(java.awt.Graphics, int, java.awt.Rectangle[], int, java.awt.Rectangle, java.awt.Rectangle) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTab(java.awt.Graphics, int, java.awt.Rectangle[], int, java.awt.Rectangle, java.awt.Rectangle) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle [] rects, int tabIndex, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  iconRect, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  textRect)
           
protected  void paintTabArea sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabArea(java.awt.Graphics, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabArea(java.awt.Graphics, int, int) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, int selectedIndex)
          Paints the tabs in the tab area.
protected  void paintTabBackground sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabBackground(java.awt.Graphics, int, int, int, int, int, int, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabBackground(java.awt.Graphics, int, int, int, int, int, int, boolean) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
           
protected  void paintTabBorder sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabBorder(java.awt.Graphics, int, int, int, int, int, int, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabBorder(java.awt.Graphics, int, int, int, int, int, int, boolean) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
          this function draws the border around each tab note that this function does now draw the background of the tab.
protected  void paintText sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintText(java.awt.Graphics, int, java.awt.Font, java.awt.FontMetrics, int, java.lang.String, java.awt.Rectangle, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintText(java.awt.Graphics, int, java.awt.Font, java.awt.FontMetrics, int, java.lang.String, java.awt.Rectangle, boolean) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, int tabPlacement, Font sample code for java.awt.Font definition code for java.awt.Font  font, FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  metrics, int tabIndex, String sample code for java.lang.String definition code for java.lang.String  title, Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  textRect, boolean isSelected)
           
protected static void rotateInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.rotateInsets(java.awt.Insets, java.awt.Insets, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.rotateInsets(java.awt.Insets, java.awt.Insets, int) (Insets sample code for java.awt.Insets definition code for java.awt.Insets  topInsets, Insets sample code for java.awt.Insets definition code for java.awt.Insets  targetInsets, int targetPlacement)
           
protected  void selectAdjacentRunTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectAdjacentRunTab(int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectAdjacentRunTab(int, int, int) (int tabPlacement, int tabIndex, int offset)
           
protected  void selectNextTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectNextTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectNextTab(int) (int current)
           
protected  void selectNextTabInRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectNextTabInRun(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectNextTabInRun(int) (int current)
           
protected  void selectPreviousTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectPreviousTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectPreviousTab(int) (int current)
           
protected  void selectPreviousTabInRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectPreviousTabInRun(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectPreviousTabInRun(int) (int current)
           
protected  void setRolloverTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.setRolloverTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.setRolloverTab(int) (int index)
          Sets the tab the mouse is currently over to index.
protected  void setVisibleComponent sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.setVisibleComponent(java.awt.Component) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.setVisibleComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  component)
           
protected  boolean shouldPadTabRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.shouldPadTabRun(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.shouldPadTabRun(int, int) (int tabPlacement, int run)
           
protected  boolean shouldRotateTabRuns sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.shouldRotateTabRuns(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.shouldRotateTabRuns(int) (int tabPlacement)
           
 int tabForCoordinate sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabForCoordinate(javax.swing.JTabbedPane, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabForCoordinate(javax.swing.JTabbedPane, int, int) (JTabbedPane sample code for javax.swing.JTabbedPane definition code for javax.swing.JTabbedPane  pane, int x, int y)
          Returns the tab index which intersects the specified point in the JTabbedPane's coordinate space.
protected  void uninstallComponents sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallComponents() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallComponents() ()
          Removes any installed subcomponents from the JTabbedPane.
protected  void uninstallDefaults sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallDefaults() ()
           
protected  void uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallKeyboardActions() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallKeyboardActions() ()
           
protected  void uninstallListeners sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallListeners() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallListeners() ()
           
 void uninstallUI sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Reverses configuration which was done on the specified component during installUI.
 
Methods inherited from class javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
contains sample code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) definition code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) , getAccessibleChild sample code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) definition code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) , getAccessibleChildrenCount sample code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) , getPreferredSize sample code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) , update sample code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

tabPane sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabPane

protected JTabbedPane sample code for javax.swing.JTabbedPane definition code for javax.swing.JTabbedPane  tabPane

highlight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.highlight

protected Color sample code for java.awt.Color definition code for java.awt.Color  highlight

lightHighlight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.lightHighlight

protected Color sample code for java.awt.Color definition code for java.awt.Color  lightHighlight

shadow sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.shadow

protected Color sample code for java.awt.Color definition code for java.awt.Color  shadow

darkShadow sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.darkShadow

protected Color sample code for java.awt.Color definition code for java.awt.Color  darkShadow

focus sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.focus

protected Color sample code for java.awt.Color definition code for java.awt.Color  focus

textIconGap sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.textIconGap

protected int textIconGap

tabRunOverlay sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabRunOverlay

protected int tabRunOverlay

tabInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabInsets

protected Insets sample code for java.awt.Insets definition code for java.awt.Insets  tabInsets

selectedTabPadInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectedTabPadInsets

protected Insets sample code for java.awt.Insets definition code for java.awt.Insets  selectedTabPadInsets

tabAreaInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabAreaInsets

protected Insets sample code for java.awt.Insets definition code for java.awt.Insets  tabAreaInsets

contentBorderInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.contentBorderInsets

protected Insets sample code for java.awt.Insets definition code for java.awt.Insets  contentBorderInsets

upKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.upKey

@Deprecated
protected KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke  upKey
Deprecated. As of Java 2 platform v1.3.
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.


downKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.downKey

@Deprecated
protected KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke  downKey
Deprecated. As of Java 2 platform v1.3.
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.


leftKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.leftKey

@Deprecated
protected KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke  leftKey
Deprecated. As of Java 2 platform v1.3.
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.


rightKey sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.rightKey

@Deprecated
protected KeyStroke sample code for javax.swing.KeyStroke definition code for javax.swing.KeyStroke  rightKey
Deprecated. As of Java 2 platform v1.3.
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.


tabRuns sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabRuns

protected int[] tabRuns

runCount sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.runCount

protected int runCount

selectedRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectedRun

protected int selectedRun

rects sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.rects

protected Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle [] rects

maxTabHeight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.maxTabHeight

protected int maxTabHeight

maxTabWidth sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.maxTabWidth

protected int maxTabWidth

tabChangeListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabChangeListener

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  tabChangeListener

propertyChangeListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.propertyChangeListener

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  propertyChangeListener

mouseListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.mouseListener

protected MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener  mouseListener

focusListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.focusListener

protected FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  focusListener

calcRect sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calcRect

protected transient Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  calcRect
A rectangle used for general layout calculations in order to avoid constructing many new Rectangles on the fly.

Constructor Detail

BasicTabbedPaneUI sample code for javax.swing.plaf.basic.BasicTabbedPaneUI() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI()

public BasicTabbedPaneUI()
Method Detail

createUI sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createUI(javax.swing.JComponent)

public static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI  createUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)

installUI sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.installUI(javax.swing.JComponent)

public void installUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent)
Configures the specified component appropriate for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:
  1. Install any default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
  2. Install a LayoutManager on the component if necessary.
  3. Create/add any required sub-components to the component.
  4. Create/install event listeners on the component.
  5. Create/install a PropertyChangeListener on the component in order to detect and respond to component property changes appropriately.
  6. Install keyboard UI (mnemonics, traversal, etc.) on the component.
  7. Initialize any appropriate instance data.

Overrides:
installUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component where this UI delegate is being installed
See Also:
ComponentUI.uninstallUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) , JComponent.setUI(javax.swing.plaf.ComponentUI) sample code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) definition code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

uninstallUI sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallUI(javax.swing.JComponent)

public void uninstallUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent)
Reverses configuration which was done on the specified component during installUI. This method is invoked when this UIComponent instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in installUI, being careful to leave the JComponent instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:
  1. Remove any UI-set borders from the component.
  2. Remove any UI-set layout managers on the component.
  3. Remove any UI-added sub-components from the component.
  4. Remove any UI-added event/property listeners from the component.
  5. Remove any UI-installed keyboard UI from the component.
  6. Nullify any allocated instance data objects to allow for GC.

Overrides:
uninstallUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.installUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

createLayoutManager sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createLayoutManager() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createLayoutManager()

protected LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager  createLayoutManager()
Invoked by installUI to create a layout manager object to manage the JTabbedPane.

Returns:
a layout manager object
See Also:
BasicTabbedPaneUI.TabbedPaneLayout sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout , JTabbedPane.getTabLayoutPolicy() sample code for javax.swing.JTabbedPane.getTabLayoutPolicy() definition code for javax.swing.JTabbedPane.getTabLayoutPolicy()

installComponents sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.installComponents() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.installComponents()

protected void installComponents()
Creates and installs any required subcomponents for the JTabbedPane. Invoked by installUI.

Since:
1.4

createScrollButton sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createScrollButton(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createScrollButton(int)

protected JButton sample code for javax.swing.JButton definition code for javax.swing.JButton  createScrollButton(int direction)
Creates and returns a JButton that will provide the user with a way to scroll the tabs in a particular direction. The returned JButton must be instance of UIResource.

Parameters:
direction - One of the SwingConstants constants: SOUTH, NORTH, EAST or WEST
Returns:
Widget for user to
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if direction is not one of NORTH, SOUTH, EAST or WEST
Since:
1.5
See Also:
JTabbedPane.setTabPlacement(int) sample code for javax.swing.JTabbedPane.setTabPlacement(int) definition code for javax.swing.JTabbedPane.setTabPlacement(int) , SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants

uninstallComponents sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallComponents() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallComponents()

protected void uninstallComponents()
Removes any installed subcomponents from the JTabbedPane. Invoked by uninstallUI.

Since:
1.4

installDefaults sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.installDefaults() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.installDefaults()

protected void installDefaults()

uninstallDefaults sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallDefaults()

protected void uninstallDefaults()

installListeners sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.installListeners() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.installListeners()

protected void installListeners()

uninstallListeners sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallListeners() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallListeners()

protected void uninstallListeners()

createMouseListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createMouseListener() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createMouseListener()

protected MouseListener sample code for java.awt.event.MouseListener definition code for java.awt.event.MouseListener  createMouseListener()

createFocusListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createFocusListener() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createFocusListener()

protected FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  createFocusListener()

createChangeListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createChangeListener() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createChangeListener()

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  createChangeListener()

createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.createPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.createPropertyChangeListener()

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  createPropertyChangeListener()

installKeyboardActions sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.installKeyboardActions() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.installKeyboardActions()

protected void installKeyboardActions()

uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallKeyboardActions() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.uninstallKeyboardActions()

protected void uninstallKeyboardActions()

setRolloverTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.setRolloverTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.setRolloverTab(int)

protected void setRolloverTab(int index)
Sets the tab the mouse is currently over to index. 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.

Parameters:
index - Index of the tab the mouse is over.
Since:
1.5

getRolloverTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getRolloverTab() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getRolloverTab()

protected int getRolloverTab()
Returns the tab the mouse is currently over, or -1 if the mouse is no longer over any tab.

Parameters:
index - Index of the tab the mouse is over.
Since:
1.5

getMinimumSize sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getMinimumSize(javax.swing.JComponent)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMinimumSize(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent)
Returns the specified component's minimum size appropriate for the look and feel. If null is returned, the minimum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.

Overrides:
getMinimumSize sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Returns:
a Dimension object or null
See Also:
JComponent.getMinimumSize() sample code for javax.swing.JComponent.getMinimumSize() definition code for javax.swing.JComponent.getMinimumSize() , LayoutManager.minimumLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager.minimumLayoutSize(java.awt.Container) , ComponentUI.getPreferredSize(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent)

getMaximumSize sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getMaximumSize(javax.swing.JComponent)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMaximumSize(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent)
Returns the specified component's maximum size appropriate for the look and feel. If null is returned, the maximum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.

Overrides:
getMaximumSize sample code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Returns:
a Dimension object or null
See Also:
JComponent.getMaximumSize() sample code for javax.swing.JComponent.getMaximumSize() definition code for javax.swing.JComponent.getMaximumSize() , LayoutManager2.maximumLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager2.maximumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager2.maximumLayoutSize(java.awt.Container)

paint sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paint(java.awt.Graphics, javax.swing.JComponent)

public void paint(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                  JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
Paints the specified component appropriate for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.

Overrides:
paint sample code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
g - the Graphics context in which to paint
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)

paintTabArea sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabArea(java.awt.Graphics, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabArea(java.awt.Graphics, int, int)

protected void paintTabArea(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                            int tabPlacement,
                            int selectedIndex)
Paints the tabs in the tab area. Invoked by paint(). The graphics parameter must be a valid Graphics object. Tab placement may be either: JTabbedPane.TOP, JTabbedPane.BOTTOM, JTabbedPane.LEFT, or 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.

Parameters:
g - the graphics object to use for rendering
tabPlacement - the placement for the tabs within the JTabbedPane
selectedIndex - the tab index of the selected component
Since:
1.4

paintTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTab(java.awt.Graphics, int, java.awt.Rectangle[], int, java.awt.Rectangle, java.awt.Rectangle) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTab(java.awt.Graphics, int, java.awt.Rectangle[], int, java.awt.Rectangle, java.awt.Rectangle)

protected void paintTab(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                        int tabPlacement,
                        Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle [] rects,
                        int tabIndex,
                        Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  iconRect,
                        Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  textRect)

layoutLabel sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.layoutLabel(int, java.awt.FontMetrics, int, java.lang.String, javax.swing.Icon, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.layoutLabel(int, java.awt.FontMetrics, int, java.lang.String, javax.swing.Icon, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, boolean)

protected void layoutLabel(int tabPlacement,
                           FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  metrics,
                           int tabIndex,
                           String sample code for java.lang.String definition code for java.lang.String  title,
                           Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon,
                           Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  tabRect,
                           Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  iconRect,
                           Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  textRect,
                           boolean isSelected)

paintIcon sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintIcon(java.awt.Graphics, int, int, javax.swing.Icon, java.awt.Rectangle, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintIcon(java.awt.Graphics, int, int, javax.swing.Icon, java.awt.Rectangle, boolean)

protected void paintIcon(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                         int tabPlacement,
                         int tabIndex,
                         Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  icon,
                         Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  iconRect,
                         boolean isSelected)

paintText sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintText(java.awt.Graphics, int, java.awt.Font, java.awt.FontMetrics, int, java.lang.String, java.awt.Rectangle, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintText(java.awt.Graphics, int, java.awt.Font, java.awt.FontMetrics, int, java.lang.String, java.awt.Rectangle, boolean)

protected void paintText(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                         int tabPlacement,
                         Font sample code for java.awt.Font definition code for java.awt.Font  font,
                         FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  metrics,
                         int tabIndex,
                         String sample code for java.lang.String definition code for java.lang.String  title,
                         Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  textRect,
                         boolean isSelected)

getTabLabelShiftX sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabLabelShiftX(int, int, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabLabelShiftX(int, int, boolean)

protected int getTabLabelShiftX(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)

getTabLabelShiftY sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabLabelShiftY(int, int, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabLabelShiftY(int, int, boolean)

protected int getTabLabelShiftY(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)

paintFocusIndicator sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintFocusIndicator(java.awt.Graphics, int, java.awt.Rectangle[], int, java.awt.Rectangle, java.awt.Rectangle, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintFocusIndicator(java.awt.Graphics, int, java.awt.Rectangle[], int, java.awt.Rectangle, java.awt.Rectangle, boolean)

protected void paintFocusIndicator(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                   int tabPlacement,
                                   Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle [] rects,
                                   int tabIndex,
                                   Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  iconRect,
                                   Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  textRect,
                                   boolean isSelected)

paintTabBorder sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabBorder(java.awt.Graphics, int, int, int, int, int, int, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabBorder(java.awt.Graphics, int, int, int, int, int, int, boolean)

protected void paintTabBorder(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                              int tabPlacement,
                              int tabIndex,
                              int x,
                              int y,
                              int w,
                              int h,
                              boolean isSelected)
this function draws the border around each tab note that this function does now draw the background of the tab. that is done elsewhere


paintTabBackground sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabBackground(java.awt.Graphics, int, int, int, int, int, int, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabBackground(java.awt.Graphics, int, int, int, int, int, int, boolean)

protected void paintTabBackground(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                  int tabPlacement,
                                  int tabIndex,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  boolean isSelected)

paintContentBorder sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorder(java.awt.Graphics, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorder(java.awt.Graphics, int, int)

protected void paintContentBorder(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                  int tabPlacement,
                                  int selectedIndex)

paintContentBorderTopEdge sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderTopEdge(java.awt.Graphics, int, int, int, int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderTopEdge(java.awt.Graphics, int, int, int, int, int, int)

protected void paintContentBorderTopEdge(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                         int tabPlacement,
                                         int selectedIndex,
                                         int x,
                                         int y,
                                         int w,
                                         int h)

paintContentBorderLeftEdge sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderLeftEdge(java.awt.Graphics, int, int, int, int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderLeftEdge(java.awt.Graphics, int, int, int, int, int, int)

protected void paintContentBorderLeftEdge(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                          int tabPlacement,
                                          int selectedIndex,
                                          int x,
                                          int y,
                                          int w,
                                          int h)

paintContentBorderBottomEdge sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderBottomEdge(java.awt.Graphics, int, int, int, int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderBottomEdge(java.awt.Graphics, int, int, int, int, int, int)

protected void paintContentBorderBottomEdge(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                            int tabPlacement,
                                            int selectedIndex,
                                            int x,
                                            int y,
                                            int w,
                                            int h)

paintContentBorderRightEdge sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderRightEdge(java.awt.Graphics, int, int, int, int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.paintContentBorderRightEdge(java.awt.Graphics, int, int, int, int, int, int)

protected void paintContentBorderRightEdge(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                                           int tabPlacement,
                                           int selectedIndex,
                                           int x,
                                           int y,
                                           int w,
                                           int h)

getTabBounds sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(javax.swing.JTabbedPane, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(javax.swing.JTabbedPane, int)

public Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getTabBounds(JTabbedPane sample code for javax.swing.JTabbedPane definition code for javax.swing.JTabbedPane  pane,
                              int i)
Returns the bounds of the specified tab index. The bounds are with respect to the JTabbedPane's coordinate space.

Specified by:
getTabBounds sample code for javax.swing.plaf.TabbedPaneUI.getTabBounds(javax.swing.JTabbedPane, int) definition code for javax.swing.plaf.TabbedPaneUI.getTabBounds(javax.swing.JTabbedPane, int) in class TabbedPaneUI sample code for javax.swing.plaf.TabbedPaneUI definition code for javax.swing.plaf.TabbedPaneUI

getTabRunCount sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunCount(javax.swing.JTabbedPane) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunCount(javax.swing.JTabbedPane)

public int getTabRunCount(JTabbedPane sample code for javax.swing.JTabbedPane definition code for javax.swing.JTabbedPane  pane)
Specified by:
getTabRunCount sample code for javax.swing.plaf.TabbedPaneUI.getTabRunCount(javax.swing.JTabbedPane) definition code for javax.swing.plaf.TabbedPaneUI.getTabRunCount(javax.swing.JTabbedPane) in class TabbedPaneUI sample code for javax.swing.plaf.TabbedPaneUI definition code for javax.swing.plaf.TabbedPaneUI

tabForCoordinate sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabForCoordinate(javax.swing.JTabbedPane, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.tabForCoordinate(javax.swing.JTabbedPane, int, int)

public int tabForCoordinate(JTabbedPane sample code for javax.swing.JTabbedPane definition code for javax.swing.JTabbedPane  pane,
                            int x,
                            int y)
Returns the tab index which intersects the specified point in the JTabbedPane's coordinate space.

Specified by:
tabForCoordinate sample code for javax.swing.plaf.TabbedPaneUI.tabForCoordinate(javax.swing.JTabbedPane, int, int) definition code for javax.swing.plaf.TabbedPaneUI.tabForCoordinate(javax.swing.JTabbedPane, int, int) in class TabbedPaneUI sample code for javax.swing.plaf.TabbedPaneUI definition code for javax.swing.plaf.TabbedPaneUI

getTabBounds sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(int, java.awt.Rectangle) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(int, java.awt.Rectangle)

protected Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getTabBounds(int tabIndex,
                                 Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  dest)
Returns the bounds of the specified tab in the coordinate space of the JTabbedPane component. This is required because the tab rects are by default defined in the coordinate space of the component where they are rendered, which could be the JTabbedPane (for WRAP_TAB_LAYOUT) or a ScrollableTabPanel (SCROLL_TAB_LAYOUT). 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 Rectangle instance. The handling of invalid parameters is unspecified.

Parameters:
tabIndex - the index of the tab
dest - the rectangle where the result should be placed
Returns:
the resulting rectangle
Since:
1.4

getVisibleComponent sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getVisibleComponent() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getVisibleComponent()

protected Component sample code for java.awt.Component definition code for java.awt.Component  getVisibleComponent()

setVisibleComponent sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.setVisibleComponent(java.awt.Component) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.setVisibleComponent(java.awt.Component)

protected void setVisibleComponent(Component sample code for java.awt.Component definition code for java.awt.Component  component)

assureRectsCreated sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.assureRectsCreated(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.assureRectsCreated(int)

protected void assureRectsCreated(int tabCount)

expandTabRunsArray sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.expandTabRunsArray() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.expandTabRunsArray()

protected void expandTabRunsArray()

getRunForTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getRunForTab(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getRunForTab(int, int)

protected int getRunForTab(int tabCount,
                           int tabIndex)

lastTabInRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.lastTabInRun(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.lastTabInRun(int, int)

protected int lastTabInRun(int tabCount,
                           int run)

getTabRunOverlay sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunOverlay(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunOverlay(int)

protected int getTabRunOverlay(int tabPlacement)

getTabRunIndent sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunIndent(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunIndent(int, int)

protected int getTabRunIndent(int tabPlacement,
                              int run)

shouldPadTabRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.shouldPadTabRun(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.shouldPadTabRun(int, int)

protected boolean shouldPadTabRun(int tabPlacement,
                                  int run)

shouldRotateTabRuns sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.shouldRotateTabRuns(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.shouldRotateTabRuns(int)

protected boolean shouldRotateTabRuns(int tabPlacement)

getIconForTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getIconForTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getIconForTab(int)

protected Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getIconForTab(int tabIndex)

getTextViewForTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTextViewForTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTextViewForTab(int)

protected View sample code for javax.swing.text.View definition code for javax.swing.text.View  getTextViewForTab(int tabIndex)
Returns the text View object required to render stylized text (HTML) for the specified tab or null if no specialized text rendering is needed for this tab. This is provided to support html rendering inside tabs.

Parameters:
tabIndex - the index of the tab
Returns:
the text view to render the tab's text or null if no specialized rendering is required
Since:
1.4

calculateTabHeight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabHeight(int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabHeight(int, int, int)

protected int calculateTabHeight(int tabPlacement,
                                 int tabIndex,
                                 int fontHeight)

calculateMaxTabHeight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabHeight(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabHeight(int)

protected int calculateMaxTabHeight(int tabPlacement)

calculateTabWidth sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabWidth(int, int, java.awt.FontMetrics) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabWidth(int, int, java.awt.FontMetrics)

protected int calculateTabWidth(int tabPlacement,
                                int tabIndex,
                                FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  metrics)

calculateMaxTabWidth sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabWidth(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabWidth(int)

protected int calculateMaxTabWidth(int tabPlacement)

calculateTabAreaHeight sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabAreaHeight(int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabAreaHeight(int, int, int)

protected int calculateTabAreaHeight(int tabPlacement,
                                     int horizRunCount,
                                     int maxTabHeight)

calculateTabAreaWidth sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabAreaWidth(int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabAreaWidth(int, int, int)

protected int calculateTabAreaWidth(int tabPlacement,
                                    int vertRunCount,
                                    int maxTabWidth)

getTabInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabInsets(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabInsets(int, int)

protected Insets sample code for java.awt.Insets definition code for java.awt.Insets  getTabInsets(int tabPlacement,
                              int tabIndex)

getSelectedTabPadInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getSelectedTabPadInsets(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getSelectedTabPadInsets(int)

protected Insets sample code for java.awt.Insets definition code for java.awt.Insets  getSelectedTabPadInsets(int tabPlacement)

getTabAreaInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabAreaInsets(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabAreaInsets(int)

protected Insets sample code for java.awt.Insets definition code for java.awt.Insets  getTabAreaInsets(int tabPlacement)

getContentBorderInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getContentBorderInsets(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getContentBorderInsets(int)

protected Insets sample code for java.awt.Insets definition code for java.awt.Insets  getContentBorderInsets(int tabPlacement)

getFontMetrics sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getFontMetrics() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getFontMetrics()

protected FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  getFontMetrics()

navigateSelectedTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.navigateSelectedTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.navigateSelectedTab(int)

protected void navigateSelectedTab(int direction)

selectNextTabInRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectNextTabInRun(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectNextTabInRun(int)

protected void selectNextTabInRun(int current)

selectPreviousTabInRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectPreviousTabInRun(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectPreviousTabInRun(int)

protected void selectPreviousTabInRun(int current)

selectNextTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectNextTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectNextTab(int)

protected void selectNextTab(int current)

selectPreviousTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectPreviousTab(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectPreviousTab(int)

protected void selectPreviousTab(int current)

selectAdjacentRunTab sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectAdjacentRunTab(int, int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.selectAdjacentRunTab(int, int, int)

protected void selectAdjacentRunTab(int tabPlacement,
                                    int tabIndex,
                                    int offset)

getFocusIndex sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getFocusIndex() definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getFocusIndex()

protected int getFocusIndex()
Returns the index of the tab that has focus.

Returns:
index of tab that has focus
Since:
1.5

getTabRunOffset sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunOffset(int, int, int, boolean) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getTabRunOffset(int, int, int, boolean)

protected int getTabRunOffset(int tabPlacement,
                              int tabCount,
                              int tabIndex,
                              boolean forward)

getPreviousTabIndex sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabIndex(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabIndex(int)

protected int getPreviousTabIndex(int base)

getNextTabIndex sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabIndex(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabIndex(int)

protected int getNextTabIndex(int base)

getNextTabIndexInRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabIndexInRun(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabIndexInRun(int, int)

protected int getNextTabIndexInRun(int tabCount,
                                   int base)

getPreviousTabIndexInRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabIndexInRun(int, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabIndexInRun(int, int)

protected int getPreviousTabIndexInRun(int tabCount,
                                       int base)

getPreviousTabRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabRun(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getPreviousTabRun(int)

protected int getPreviousTabRun(int baseRun)

getNextTabRun sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabRun(int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.getNextTabRun(int)

protected int getNextTabRun(int baseRun)

rotateInsets sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.rotateInsets(java.awt.Insets, java.awt.Insets, int) definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.rotateInsets(java.awt.Insets, java.awt.Insets, int)

protected static void rotateInsets(Insets sample code for java.awt.Insets definition code for java.awt.Insets  topInsets,
                                   Insets sample code for java.awt.Insets definition code for java.awt.Insets  targetInsets,
                                   int targetPlacement)