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.TabbedPaneLayout
to avoid aClassCastException
inBasicTabbedPaneUI
.ensureCurrentLayout().
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FlatTabbedPaneScrollLayout(BasicTabbedPaneUI.TabbedPaneLayout delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLayoutComponent(String name, Component comp)
void
calculateLayoutInfo()
protected Dimension
calculateTabAreaSize()
void
layoutContainer(Container parent)
Dimension
minimumLayoutSize(Container parent)
Dimension
preferredLayoutSize(Container parent)
void
removeLayoutComponent(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:
calculateLayoutInfo
in classBasicTabbedPaneUI.TabbedPaneLayout
-
calculateTabAreaSize
protected Dimension calculateTabAreaSize()
- Overrides:
calculateTabAreaSize
in classFlatTabbedPaneUI.FlatTabbedPaneLayout
-
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Overrides:
preferredLayoutSize
in classBasicTabbedPaneUI.TabbedPaneLayout
-
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Overrides:
minimumLayoutSize
in classBasicTabbedPaneUI.TabbedPaneLayout
-
addLayoutComponent
public void addLayoutComponent(String name, Component comp)
- Specified by:
addLayoutComponent
in interfaceLayoutManager
- Overrides:
addLayoutComponent
in classBasicTabbedPaneUI.TabbedPaneLayout
-
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Overrides:
removeLayoutComponent
in classBasicTabbedPaneUI.TabbedPaneLayout
-
layoutContainer
public void layoutContainer(Container parent)
- Specified by:
layoutContainer
in interfaceLayoutManager
- Overrides:
layoutContainer
in classFlatTabbedPaneUI.FlatTabbedPaneLayout
-
-