- java.lang.Object
-
- javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
-
- javax.swing.plaf.metal.MetalTabbedPaneUI.TabbedPaneLayout
-
- All Implemented Interfaces:
LayoutManager
- Enclosing class:
- MetalTabbedPaneUI
public class MetalTabbedPaneUI.TabbedPaneLayout extends BasicTabbedPaneUI.TabbedPaneLayout
This class should be treated as a "protected" inner class. Instantiate it only within subclasses ofMetalTabbedPaneUI
.
-
-
Constructor Summary
Constructors Constructor Description TabbedPaneLayout()
ConstructsTabbedPaneLayout
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
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
-
-