Package com.jtattoo.plaf
Class BaseTabbedPaneUI.TabbedPaneLayout
java.lang.Object
com.jtattoo.plaf.BaseTabbedPaneUI.TabbedPaneLayout
- All Implemented Interfaces:
LayoutManager
- Enclosing class:
BaseTabbedPaneUI
This inner class is marked "public" due to a compiler bug. This
class should be treated as a "protected" inner class. Instantiate
it only within subclasses of BaseTabbedPaneUI.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(String name, Component comp) void
protected Dimension
calculateSize
(boolean minimum) protected void
calculateTabRects
(int tabPlacement, int tabCount) void
layoutContainer
(Container parent) minimumLayoutSize
(Container parent) protected void
normalizeTabRuns
(int tabPlacement, int tabCount, int start, int max) protected void
padSelectedTab
(int tabPlacement, int selectedIndex) protected void
padTabRun
(int tabPlacement, int start, int end, int max) preferredLayoutSize
(Container parent) protected int
preferredTabAreaHeight
(int tabPlacement, int width) protected int
preferredTabAreaWidth
(int tabPlacement, int height) void
protected void
rotateTabRuns
(int tabPlacement, int selectedRun)
-
Constructor Details
-
TabbedPaneLayout
public TabbedPaneLayout()
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager
-
calculateLayoutInfo
public void calculateLayoutInfo() -
calculateSize
-
calculateTabRects
protected void calculateTabRects(int tabPlacement, int tabCount) -
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
-
normalizeTabRuns
protected void normalizeTabRuns(int tabPlacement, int tabCount, int start, int max) -
padSelectedTab
protected void padSelectedTab(int tabPlacement, int selectedIndex) -
padTabRun
protected void padTabRun(int tabPlacement, int start, int end, int max) -
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
-
preferredTabAreaHeight
protected int preferredTabAreaHeight(int tabPlacement, int width) -
preferredTabAreaWidth
protected int preferredTabAreaWidth(int tabPlacement, int height) -
removeLayoutComponent
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
-
rotateTabRuns
protected void rotateTabRuns(int tabPlacement, int selectedRun)
-