javax.swing.plaf.metal

Class MetalTabbedPaneUI.TabbedPaneLayout

public class MetalTabbedPaneUI.TabbedPaneLayout extends 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.

UNKNOWN: Apparently this class was intended to be protected, but was made public by a compiler bug and is now public for compatibility.

Constructor Summary
TabbedPaneLayout()
Creates a new instance of the layout manager.
Method Summary
protected voidnormalizeTabRuns(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 voidpadSelectedTab(int tabPlacement, int selectedIndex)
Overridden to do nothing, because the selected tab does not have extra padding in the MetalLookAndFeel.
protected voidrotateTabRuns(int tabPlacement, int selectedRun)
Overridden to do nothing, because tab runs are not rotated in the MetalLookAndFeel.

Constructor Detail

TabbedPaneLayout

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

Method Detail

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.

padSelectedTab

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

Parameters: tabPlacement the tab placement (one of TabbedPaneLayout, TabbedPaneLayout, TabbedPaneLayout or TabbedPaneLayout). selectedIndex the index of the selected tab.

rotateTabRuns

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

Parameters: tabPlacement the tab placement (one of TabbedPaneLayout, TabbedPaneLayout, TabbedPaneLayout or TabbedPaneLayout). selectedRun the index of the selected run.