javax.swing.plaf.metal
Class MetalTabbedPaneUI.TabbedPaneLayout

java.lang.Object
  extended by javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
      extended by javax.swing.plaf.metal.MetalTabbedPaneUI.TabbedPaneLayout
All Implemented Interfaces:
LayoutManager
Enclosing class:
MetalTabbedPaneUI

public class MetalTabbedPaneUI.TabbedPaneLayout
extends BasicTabbedPaneUI.TabbedPaneLayout

A LayoutManager responsible for placing all the tabs and the visible component inside the JTabbedPane. This class is only used for JTabbedPane.WRAP_TAB_LAYOUT.


Constructor Summary
MetalTabbedPaneUI.TabbedPaneLayout()
          Creates a new instance of the layout manager.
 
Method Summary
protected  void normalizeTabRuns(int tabPlacement, int tabCount, int start, int max)
          Overridden because tab runs are only normalized for TOP and BOTTOM tab placement in the Metal L&F.
protected  void padSelectedTab(int tabPlacement, int selectedIndex)
          Overridden to do nothing, because the selected tab does not have extra padding in the MetalLookAndFeel.
protected  void rotateTabRuns(int tabPlacement, int selectedRun)
          Overridden to do nothing, because tab runs are not rotated in the MetalLookAndFeel.
 
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
addLayoutComponent, calculateLayoutInfo, calculateSize, calculateTabRects, layoutContainer, minimumLayoutSize, padTabRun, preferredLayoutSize, preferredTabAreaHeight, preferredTabAreaWidth, removeLayoutComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetalTabbedPaneUI.TabbedPaneLayout

public MetalTabbedPaneUI.TabbedPaneLayout()
Creates a new instance of the layout manager.

Method Detail

rotateTabRuns

protected void rotateTabRuns(int tabPlacement,
                             int selectedRun)
Overridden to do nothing, because tab runs are not rotated in the MetalLookAndFeel.

Overrides:
rotateTabRuns in class BasicTabbedPaneUI.TabbedPaneLayout
Parameters:
tabPlacement - the tab placement (one of SwingConstants.TOP, SwingConstants.BOTTOM, SwingConstants.LEFT or SwingConstants.RIGHT).
selectedRun - the index of the selected run.

padSelectedTab

protected void padSelectedTab(int tabPlacement,
                              int selectedIndex)
Overridden to do nothing, because the selected tab does not have extra padding in the MetalLookAndFeel.

Overrides:
padSelectedTab in class BasicTabbedPaneUI.TabbedPaneLayout
Parameters:
tabPlacement - the tab placement (one of SwingConstants.TOP, SwingConstants.BOTTOM, SwingConstants.LEFT or SwingConstants.RIGHT).
selectedIndex - the index of the selected tab.

normalizeTabRuns

protected void normalizeTabRuns(int tabPlacement,
                                int tabCount,
                                int start,
                                int max)
Overridden because tab runs are only normalized for TOP and BOTTOM tab placement in the Metal L&F.

Overrides:
normalizeTabRuns in class BasicTabbedPaneUI.TabbedPaneLayout
Parameters:
tabPlacement - The JTabbedPane's tab placement.
tabCount - The number of tabs.
start - The x position where the tabs will begin.
max - The maximum x position where the tab can run to.