All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.basic.BasicTabbedPaneUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.TabbedPaneUI
                    |
                    +----java.awt.swing.basic.BasicTabbedPaneUI

public class BasicTabbedPaneUI
extends TabbedPaneUI
implements LayoutManager, ChangeListener, Serializable
A Windows L&F implementation of TabbedPaneUI.


Variable Index

 o focusColor
 o focusGetter
 o iconSpacingWidth
 o magicHackCalledD
this variable was called "d" by the original author we're really not sure what that stood for.
 o maxTabHeight
 o mouseGetter
 o nRows
 o overlay
 o rects
 o spacingHeight
 o spacingWidth
 o tabBackgroundColor
 o tabDarkShadowColor
 o tabHighlightColor
 o tabShadowColor
 o tabTextColor
 o xNudge
 o yNudge

Constructor Index

 o BasicTabbedPaneUI()

Method Index

 o addLayoutComponent(String, Component)
 o arrangeTabs(int, int, int, int, int, Font, int, int, int, JTabbedPane)
 o assureRectsCreated(int)
 o calculateLayoutInfo(JTabbedPane)
 o calculateXNudge(Rectangle)
 o calculateYNudge(Rectangle)
 o createUI(JComponent)
 o drawBezelNoTop(Graphics, int, int, int, int)
This function draws the etch around the content area of the pane note: content area means the area below the tabs
 o drawLineBelowTabs(Graphics, int, int, int)
this function draws the line which separates the tabs from the content area below.
 o drawTabBorder(Graphics, int, int, int, int)
this function draws the border around each tab note that this function does now draw the background of the tab.
 o getMaximumSize(JComponent)
 o getMetrics(JTabbedPane)
 o getMinimumSize(JComponent)
 o getPreferredSize(JComponent)
 o getTabBounds(JTabbedPane, int)
 o getVisibleComponent(JTabbedPane)
 o initColors(JComponent)
 o installFont(JComponent)
 o installUI(JComponent)
 o layoutContainer(Container)
 o layoutLabel(FontMetrics, String, Icon, Rectangle, Rectangle, Rectangle, boolean)
 o maxTabHeight(JTabbedPane)
 o maxTabWidth(JTabbedPane)
 o minimumLayoutSize(Container)
 o padRow(int, int, int)
 o padSelectedTab(JTabbedPane)
 o paint(Graphics, JComponent)
 o paintFocusIndicator(Graphics, JTabbedPane, Rectangle[], int, Rectangle, Rectangle)
 o paintIcon(Graphics, JTabbedPane, Icon, int, Rectangle, boolean)
 o paintTab(Graphics, JTabbedPane, Rectangle[], int, Rectangle, Rectangle)
 o paintTabBackground(Graphics, int, int, int, int)
 o paintText(Graphics, JTabbedPane, String, int, Font, Rectangle, FontMetrics, boolean)
 o preferredLayoutSize(Container)
 o removeComponent(JTabbedPane, Component)
 o removeLayoutComponent(Component)
 o selectAdjacentTab(JTabbedPane, int)
 o selectNextTab(JTabbedPane)
 o selectPrevTab(JTabbedPane)
 o selectTabAbove(JTabbedPane)
 o selectTabBelow(JTabbedPane)
 o stateChanged(ChangeEvent)
 o tabForCoordinate(JTabbedPane, int, int)
 o tabHeight()
 o tabWidth(JTabbedPane, int, FontMetrics)
 o uninstallUI(JComponent)

Variables

 o overlay
protected static int overlay
 o spacingHeight
protected static int spacingHeight
 o spacingWidth
protected static int spacingWidth
 o iconSpacingWidth
protected static int iconSpacingWidth
 o xNudge
protected int xNudge
 o yNudge
protected int yNudge
 o magicHackCalledD
protected int magicHackCalledD
this variable was called "d" by the original author we're really not sure what that stood for. As far as we can tell, this variable refers to: the position of the current tab relative to the selected tab it is used to ensure proper drawing of overlapping tabs

 o tabTextColor
protected Color tabTextColor
 o focusColor
protected Color focusColor
 o tabBackgroundColor
protected Color tabBackgroundColor
 o tabHighlightColor
protected Color tabHighlightColor
 o tabShadowColor
protected Color tabShadowColor
 o tabDarkShadowColor
protected Color tabDarkShadowColor
 o nRows
protected int nRows
 o maxTabHeight
protected int maxTabHeight
 o rects
protected Rectangle[] rects
 o mouseGetter
protected BasicTabbedPaneUI.MouseGetter mouseGetter
 o focusGetter
protected BasicTabbedPaneUI.FocusGetter focusGetter

Constructors

 o BasicTabbedPaneUI
public BasicTabbedPaneUI()

Methods

 o selectNextTab
public void selectNextTab(JTabbedPane pane)
 o selectPrevTab
public void selectPrevTab(JTabbedPane pane)
 o getPreferredSize
public Dimension getPreferredSize(JComponent container)
Overrides:
getPreferredSize in class ComponentUI
 o getMinimumSize
public Dimension getMinimumSize(JComponent container)
Overrides:
getMinimumSize in class ComponentUI
 o getMaximumSize
public Dimension getMaximumSize(JComponent container)
Overrides:
getMaximumSize in class ComponentUI
 o addLayoutComponent
public void addLayoutComponent(String name,
                               Component comp)
 o removeLayoutComponent
public void removeLayoutComponent(Component comp)
 o preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
 o minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
 o getVisibleComponent
protected Component getVisibleComponent(JTabbedPane pane)
 o removeComponent
protected void removeComponent(JTabbedPane pane,
                               Component component)
 o stateChanged
public void stateChanged(ChangeEvent e)
 o padRow
protected void padRow(int rowI,
                      int i,
                      int maxX)
 o assureRectsCreated
protected void assureRectsCreated(int tabCount)
 o arrangeTabs
protected void arrangeTabs(int paddingExemptRow,
                           int firstRowIndent,
                           int otherRowIndent,
                           int maxTabHeight,
                           int overlay,
                           Font font,
                           int maxX,
                           int returnAt,
                           int tabCount,
                           JTabbedPane pane)
 o maxTabHeight
protected int maxTabHeight(JTabbedPane pane)
 o tabWidth
protected int tabWidth(JTabbedPane pane,
                       int index,
                       FontMetrics metrics)
 o maxTabWidth
protected int maxTabWidth(JTabbedPane pane)
 o getMetrics
protected FontMetrics getMetrics(JTabbedPane pane)
 o createUI
public static ComponentUI createUI(JComponent x)
 o installUI
public void installUI(JComponent container)
Overrides:
installUI in class ComponentUI
 o uninstallUI
public void uninstallUI(JComponent container)
Overrides:
uninstallUI in class ComponentUI
 o initColors
protected void initColors(JComponent c)
 o installFont
protected void installFont(JComponent c)
 o selectAdjacentTab
protected void selectAdjacentTab(JTabbedPane pane,
                                 int heightOffset)
 o selectTabAbove
protected void selectTabAbove(JTabbedPane pane)
 o selectTabBelow
protected void selectTabBelow(JTabbedPane pane)
 o paintTab
protected void paintTab(Graphics g,
                        JTabbedPane pane,
                        Rectangle[] rects,
                        int i,
                        Rectangle iconRect,
                        Rectangle textRect)
 o layoutLabel
protected void layoutLabel(FontMetrics metrics,
                           String title,
                           Icon icon,
                           Rectangle tabRect,
                           Rectangle iconRect,
                           Rectangle textRect,
                           boolean isSelected)
 o paintIcon
protected void paintIcon(Graphics g,
                         JTabbedPane pane,
                         Icon icon,
                         int tabIndex,
                         Rectangle iconRect,
                         boolean isSelected)
 o paintText
protected void paintText(Graphics g,
                         JTabbedPane pane,
                         String title,
                         int tabIndex,
                         Font font,
                         Rectangle textRect,
                         FontMetrics metrics,
                         boolean isSelected)
 o calculateXNudge
protected int calculateXNudge(Rectangle tabRect)
 o calculateYNudge
protected int calculateYNudge(Rectangle tabRect)
 o paintFocusIndicator
protected void paintFocusIndicator(Graphics g,
                                   JTabbedPane pane,
                                   Rectangle[] rects,
                                   int i,
                                   Rectangle iconRect,
                                   Rectangle textRect)
 o paint
public void paint(Graphics g,
                  JComponent container)
Overrides:
paint in class ComponentUI
 o drawLineBelowTabs
protected void drawLineBelowTabs(Graphics g,
                                 int selectedIndex,
                                 int tabHeight,
                                 int width)
this function draws the line which separates the tabs from the content area below. this implementation leaves a gap to complete the illution that the tab is part of the content area.

 o drawBezelNoTop
protected void drawBezelNoTop(Graphics g,
                              int x,
                              int y,
                              int w,
                              int h)
This function draws the etch around the content area of the pane note: content area means the area below the tabs

 o drawTabBorder
protected void drawTabBorder(Graphics g,
                             int x,
                             int y,
                             int w,
                             int h)
this function draws the border around each tab note that this function does now draw the background of the tab. that is done elsewhere

 o paintTabBackground
protected void paintTabBackground(Graphics g,
                                  int x,
                                  int y,
                                  int w,
                                  int h)
 o layoutContainer
public void layoutContainer(Container parent)
 o calculateLayoutInfo
protected void calculateLayoutInfo(JTabbedPane pane)
 o padSelectedTab
protected void padSelectedTab(JTabbedPane pane)
 o tabForCoordinate
public int tabForCoordinate(JTabbedPane pane,
                            int x,
                            int y)
Overrides:
tabForCoordinate in class TabbedPaneUI
 o getTabBounds
public Rectangle getTabBounds(JTabbedPane pane,
                              int i)
Overrides:
getTabBounds in class TabbedPaneUI
 o tabHeight
protected int tabHeight()

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature