Class MetalTabbedPaneUI.TabbedPaneLayout
java.lang.Object
javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
javax.swing.plaf.metal.MetalTabbedPaneUI.TabbedPaneLayout
- All Implemented Interfaces:
LayoutManager
- Enclosing class:
MetalTabbedPaneUI
This class should be treated as a "protected" inner class.
Instantiate it only within subclasses of
MetalTabbedPaneUI.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidnormalizeTabRuns(int tabPlacement, int tabCount, int start, int max) Normalizes the tab runs.protected voidpadSelectedTab(int tabPlacement, int selectedIndex) Pads selected tab.protected voidrotateTabRuns(int tabPlacement, int selectedRun) Rotates the run-index array so that the selected run is run[0].
-
Constructor Details
-
TabbedPaneLayout
public TabbedPaneLayout()ConstructsTabbedPaneLayout.
-
-
Method Details
-
normalizeTabRuns
protected void normalizeTabRuns(int tabPlacement, int tabCount, int start, int max) Description copied from class:BasicTabbedPaneUI.TabbedPaneLayoutNormalizes the tab runs.- Overrides:
normalizeTabRunsin classBasicTabbedPaneUI.TabbedPaneLayout- Parameters:
tabPlacement- the tab placementtabCount- the tab countstart- the startmax- the max
-
rotateTabRuns
protected void rotateTabRuns(int tabPlacement, int selectedRun) Description copied from class:BasicTabbedPaneUI.TabbedPaneLayoutRotates the run-index array so that the selected run is run[0].- Overrides:
rotateTabRunsin classBasicTabbedPaneUI.TabbedPaneLayout- Parameters:
tabPlacement- the tab placementselectedRun- the selected run
-
padSelectedTab
protected void padSelectedTab(int tabPlacement, int selectedIndex) Description copied from class:BasicTabbedPaneUI.TabbedPaneLayoutPads selected tab.- Overrides:
padSelectedTabin classBasicTabbedPaneUI.TabbedPaneLayout- Parameters:
tabPlacement- the tab placementselectedIndex- the selected index
-