- 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 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].-
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.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
-
-