public class MetalTabbedPaneUI.TabbedPaneLayout extends BasicTabbedPaneUI.TabbedPaneLayout
LayoutManager
responsible for placing all the tabs and the
visible component inside the JTabbedPane
. This class is only used
for JTabbedPane.WRAP_TAB_LAYOUT
.Constructor and Description |
---|
MetalTabbedPaneUI.TabbedPaneLayout()
Creates a new instance of the layout manager.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected void |
padSelectedTab(int tabPlacement,
int selectedIndex)
Overridden to do nothing, because the selected tab does not have extra
padding in the
MetalLookAndFeel . |
protected void |
rotateTabRuns(int tabPlacement,
int selectedRun)
Overridden to do nothing, because tab runs are not rotated in the
MetalLookAndFeel . |
addLayoutComponent, calculateLayoutInfo, calculateSize, calculateTabRects, layoutContainer, minimumLayoutSize, padTabRun, preferredLayoutSize, preferredTabAreaHeight, preferredTabAreaWidth, removeLayoutComponent
public MetalTabbedPaneUI.TabbedPaneLayout()
protected void rotateTabRuns(int tabPlacement, int selectedRun)
MetalLookAndFeel
.rotateTabRuns
in class BasicTabbedPaneUI.TabbedPaneLayout
tabPlacement
- the tab placement (one of SwingConstants.TOP
,
SwingConstants.BOTTOM
, SwingConstants.LEFT
or SwingConstants.RIGHT
).selectedRun
- the index of the selected run.protected void padSelectedTab(int tabPlacement, int selectedIndex)
MetalLookAndFeel
.padSelectedTab
in class BasicTabbedPaneUI.TabbedPaneLayout
tabPlacement
- the tab placement (one of SwingConstants.TOP
,
SwingConstants.BOTTOM
, SwingConstants.LEFT
or SwingConstants.RIGHT
).selectedIndex
- the index of the selected tab.protected void normalizeTabRuns(int tabPlacement, int tabCount, int start, int max)
normalizeTabRuns
in class BasicTabbedPaneUI.TabbedPaneLayout
tabPlacement
- The JTabbedPane's tab placement.tabCount
- The number of tabs.start
- The x position where the tabs will begin.max
- The maximum x position where the tab can run to.