javax.swing.plaf.metal

Class MetalTabbedPaneUI.TabbedPaneLayout

public class MetalTabbedPaneUI.TabbedPaneLayout extends BasicTabbedPaneUI.TabbedPaneLayout

A {@link LayoutManager} responsible for placing all the tabs and the visible component inside the {@link JTabbedPane}. This class is only used for {@link 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 {@link MetalLookAndFeel}.
protected voidrotateTabRuns(int tabPlacement, int selectedRun)
Overridden to do nothing, because tab runs are not rotated in the {@link 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 {@link MetalLookAndFeel}.

Parameters: tabPlacement the tab placement (one of {@link #TOP}, {@link #BOTTOM}, {@link #LEFT} or {@link #RIGHT}). 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 {@link MetalLookAndFeel}.

Parameters: tabPlacement the tab placement (one of {@link #TOP}, {@link #BOTTOM}, {@link #LEFT} or {@link #RIGHT}). selectedRun the index of the selected run.