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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
normalizeTabRuns
(int tabPlacement, int tabCount, int start, int max) Normalizes the tab runs.protected void
padSelectedTab
(int tabPlacement, int selectedIndex) Pads selected tab.protected void
rotateTabRuns
(int tabPlacement, int selectedRun) Rotates the run-index array so that the selected run is run[0].Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
addLayoutComponent, calculateLayoutInfo, calculateSize, calculateTabRects, layoutContainer, minimumLayoutSize, padTabRun, preferredLayoutSize, preferredTabAreaHeight, preferredTabAreaWidth, removeLayoutComponent
-
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.TabbedPaneLayout
Normalizes the tab runs.- Overrides:
normalizeTabRuns
in 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.TabbedPaneLayout
Rotates the run-index array so that the selected run is run[0].- Overrides:
rotateTabRuns
in classBasicTabbedPaneUI.TabbedPaneLayout
- Parameters:
tabPlacement
- the tab placementselectedRun
- the selected run
-
padSelectedTab
protected void padSelectedTab(int tabPlacement, int selectedIndex) Description copied from class:BasicTabbedPaneUI.TabbedPaneLayout
Pads selected tab.- Overrides:
padSelectedTab
in classBasicTabbedPaneUI.TabbedPaneLayout
- Parameters:
tabPlacement
- the tab placementselectedIndex
- the selected index
-