Package com.jtattoo.plaf.base
Class BaseTabbedPaneUI.TabbedPaneLayout
java.lang.Object
com.jtattoo.plaf.base.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) voidprotected DimensioncalculateSize(boolean minimum) protected voidcalculateTabRects(int tabPlacement, int tabCount) voidlayoutContainer(Container parent) minimumLayoutSize(Container parent) protected voidnormalizeTabRuns(int tabPlacement, int tabCount, int start, int max) protected voidpadSelectedTab(int tabPlacement, int selectedIndex) protected voidpadTabRun(int tabPlacement, int start, int end, int max) preferredLayoutSize(Container parent) protected intpreferredTabAreaHeight(int tabPlacement, int width) protected intpreferredTabAreaWidth(int tabPlacement, int height) voidprotected voidrotateTabRuns(int tabPlacement, int selectedRun)
-
Constructor Details
-
TabbedPaneLayout
public TabbedPaneLayout()
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
calculateLayoutInfo
public void calculateLayoutInfo() -
calculateSize
-
calculateTabRects
protected void calculateTabRects(int tabPlacement, int tabCount) -
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein 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:
preferredLayoutSizein interfaceLayoutManager
-
preferredTabAreaHeight
protected int preferredTabAreaHeight(int tabPlacement, int width) -
preferredTabAreaWidth
protected int preferredTabAreaWidth(int tabPlacement, int height) -
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
rotateTabRuns
protected void rotateTabRuns(int tabPlacement, int selectedRun)
-