Package com.formdev.flatlaf.ui
Class FlatTabbedPaneUI.FlatTabbedPaneScrollLayout
- java.lang.Object
-
- javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
-
- com.formdev.flatlaf.ui.FlatTabbedPaneUI.FlatTabbedPaneLayout
-
- com.formdev.flatlaf.ui.FlatTabbedPaneUI.FlatTabbedPaneScrollLayout
-
- All Implemented Interfaces:
LayoutManager
- Enclosing class:
- FlatTabbedPaneUI
protected class FlatTabbedPaneUI.FlatTabbedPaneScrollLayout extends FlatTabbedPaneUI.FlatTabbedPaneLayout implements LayoutManager
Layout manager used for scroll tab layout policy.Although this class delegates all methods to the original layout manager
BasicTabbedPaneUI.TabbedPaneScrollLayout, which extendsBasicTabbedPaneUI.TabbedPaneLayout, it is necessary that this class also extendsBasicTabbedPaneUI.TabbedPaneLayoutto avoid aClassCastExceptioninBasicTabbedPaneUI.ensureCurrentLayout().
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFlatTabbedPaneScrollLayout(BasicTabbedPaneUI.TabbedPaneLayout delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutComponent(String name, Component comp)voidcalculateLayoutInfo()protected DimensioncalculateTabAreaSize()voidlayoutContainer(Container parent)DimensionminimumLayoutSize(Container parent)DimensionpreferredLayoutSize(Container parent)voidremoveLayoutComponent(Component comp)-
Methods inherited from class com.formdev.flatlaf.ui.FlatTabbedPaneUI.FlatTabbedPaneLayout
calculateSize, isContentEmpty
-
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
calculateTabRects, normalizeTabRuns, padSelectedTab, padTabRun, preferredTabAreaHeight, preferredTabAreaWidth, rotateTabRuns
-
-
-
-
Constructor Detail
-
FlatTabbedPaneScrollLayout
protected FlatTabbedPaneScrollLayout(BasicTabbedPaneUI.TabbedPaneLayout delegate)
-
-
Method Detail
-
calculateLayoutInfo
public void calculateLayoutInfo()
- Overrides:
calculateLayoutInfoin classBasicTabbedPaneUI.TabbedPaneLayout
-
calculateTabAreaSize
protected Dimension calculateTabAreaSize()
- Overrides:
calculateTabAreaSizein classFlatTabbedPaneUI.FlatTabbedPaneLayout
-
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Specified by:
preferredLayoutSizein interfaceLayoutManager- Overrides:
preferredLayoutSizein classBasicTabbedPaneUI.TabbedPaneLayout
-
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Specified by:
minimumLayoutSizein interfaceLayoutManager- Overrides:
minimumLayoutSizein classBasicTabbedPaneUI.TabbedPaneLayout
-
addLayoutComponent
public void addLayoutComponent(String name, Component comp)
- Specified by:
addLayoutComponentin interfaceLayoutManager- Overrides:
addLayoutComponentin classBasicTabbedPaneUI.TabbedPaneLayout
-
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Specified by:
removeLayoutComponentin interfaceLayoutManager- Overrides:
removeLayoutComponentin classBasicTabbedPaneUI.TabbedPaneLayout
-
layoutContainer
public void layoutContainer(Container parent)
- Specified by:
layoutContainerin interfaceLayoutManager- Overrides:
layoutContainerin classFlatTabbedPaneUI.FlatTabbedPaneLayout
-
-