java.lang.Object
javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout
- 所有已实现的接口:
-
LayoutManager
- 直接已知的子类:
-
MetalTabbedPaneUI.TabbedPaneLayout
- 封装类:
-
BasicTabbedPaneUI
此类应被视为“protected”内部类。仅在BasicTabbedPaneUI的子类中实例化。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) 如果布局管理器使用每个组件的字符串,则将组件comp添加到布局中,并将其与name指定的字符串关联。void计算布局信息。protected 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) 返回首选选项卡区域宽度。void从布局中移除指定的组件。protected voidrotateTabRuns(int tabPlacement, int selectedRun) 旋转运行索引数组,以使选定的运行为run[0]。
-
Constructor Details
-
TabbedPaneLayout
public TabbedPaneLayout()构造一个TabbedPaneLayout。
-
-
Method Details
-
addLayoutComponent
从接口复制的描述:LayoutManager如果布局管理器使用每个组件的字符串,则将组件comp添加到布局中,并将其与name指定的字符串关联。- 指定者:
-
addLayoutComponent在接口LayoutManager - 参数:
-
name- 与组件关联的字符串 -
comp- 要添加的组件
-
removeLayoutComponent
从接口复制的描述:LayoutManager从布局中移除指定的组件。- 指定者:
-
removeLayoutComponent在接口LayoutManager - 参数:
-
comp- 要移除的组件
-
preferredLayoutSize
从接口复制的描述:LayoutManager计算指定容器的首选尺寸维度,给定它包含的组件。- 指定者:
-
preferredLayoutSize在接口LayoutManager - 参数:
-
parent- 要布局的容器 - 返回:
- 容器的首选尺寸
- 参见:
-
minimumLayoutSize
从接口复制的描述:LayoutManager计算指定容器的最小尺寸维度,给定它包含的组件。- 指定者:
-
minimumLayoutSize在接口LayoutManager - 参数:
-
parent- 要布局的组件 - 返回:
- 容器的最小尺寸
- 参见:
-
calculateSize
返回计算的大小。- 参数:
-
minimum- 使用最小尺寸或首选尺寸 - 返回:
- 计算的大小
-
preferredTabAreaHeight
protected int preferredTabAreaHeight(int tabPlacement, int width) 返回首选选项卡区域高度。- 参数:
-
tabPlacement- 选项卡位置 -
width- 宽度 - 返回:
- 首选选项卡区域高度
-
preferredTabAreaWidth
protected int preferredTabAreaWidth(int tabPlacement, int height) 返回首选选项卡区域宽度。- 参数:
-
tabPlacement- 选项卡位置 -
height- 高度 - 返回:
- 首选选项卡区域宽度
-
layoutContainer
布置指定的容器。- 指定者:
-
layoutContainer在接口LayoutManager - 参数:
-
parent- 要布局的容器
-
calculateLayoutInfo
public void calculateLayoutInfo()计算布局信息。 -
calculateTabRects
protected void calculateTabRects(int tabPlacement, int tabCount) 计算选项卡矩形。- 参数:
-
tabPlacement- 选项卡位置 -
tabCount- 选项卡计数
-
rotateTabRuns
protected void rotateTabRuns(int tabPlacement, int selectedRun) 旋转运行索引数组,以使选定的运行为run[0]。- 参数:
-
tabPlacement- 选项卡位置 -
selectedRun- 选定的运行
-
normalizeTabRuns
protected void normalizeTabRuns(int tabPlacement, int tabCount, int start, int max) 规范化选项卡运行。- 参数:
-
tabPlacement- 选项卡位置 -
tabCount- 选项卡计数 -
start- 开始 -
max- 最大值
-
padTabRun
protected void padTabRun(int tabPlacement, int start, int end, int max) 填充选项卡运行。- 参数:
-
tabPlacement- 选项卡位置 -
start- 开始 -
end- 结束 -
max- 最大值
-
padSelectedTab
protected void padSelectedTab(int tabPlacement, int selectedIndex) 填充选定的选项卡。- 参数:
-
tabPlacement- 选项卡位置 -
selectedIndex- 选定的索引
-