public class BasicTabbedPaneUI.TabbedPaneLayout extends Object implements LayoutManager
Constructor and Description |
---|
TabbedPaneLayout() |
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(String name, Component comp)
如果布局管理器使用每个组件字符串,则将组件
comp 添加到布局,将其与name指定的字符串相关
name 。
|
void |
calculateLayoutInfo() |
protected Dimension |
calculateSize(boolean minimum) |
protected void |
calculateTabRects(int tabPlacement, int tabCount) |
void |
layoutContainer(Container parent)
放出指定的容器。
|
Dimension |
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) |
Dimension |
preferredLayoutSize(Container parent)
计算指定容器的首选大小尺寸,给定其包含的组件。
|
protected int |
preferredTabAreaHeight(int tabPlacement, int width) |
protected int |
preferredTabAreaWidth(int tabPlacement, int height) |
void |
removeLayoutComponent(Component comp)
从布局中删除指定的组件。
|
protected void |
rotateTabRuns(int tabPlacement, int selectedRun) |
public void addLayoutComponent(String name, Component comp)
LayoutManager
comp
添加到布局,将其与name指定的字符串相关
name
。
addLayoutComponent
在接口
LayoutManager
name
- 要与组件关联的字符串
comp
- 要添加的组件
public void removeLayoutComponent(Component comp)
LayoutManager
removeLayoutComponent
在界面
LayoutManager
comp
- 要删除的组件
public Dimension preferredLayoutSize(Container parent)
LayoutManager
preferredLayoutSize
在界面
LayoutManager
parent
- 要布置的容器
LayoutManager.minimumLayoutSize(java.awt.Container)
public Dimension minimumLayoutSize(Container parent)
LayoutManager
minimumLayoutSize
在界面
LayoutManager
parent
- 要布局的组件
LayoutManager.preferredLayoutSize(java.awt.Container)
protected Dimension calculateSize(boolean minimum)
protected int preferredTabAreaHeight(int tabPlacement, int width)
protected int preferredTabAreaWidth(int tabPlacement, int height)
public void layoutContainer(Container parent)
LayoutManager
layoutContainer
在界面
LayoutManager
parent
- 要布置的容器
public void calculateLayoutInfo()
protected void calculateTabRects(int tabPlacement, int tabCount)
protected void rotateTabRuns(int tabPlacement, int selectedRun)
protected void normalizeTabRuns(int tabPlacement, int tabCount, int start, int max)
protected void padTabRun(int tabPlacement, int start, int end, int max)
protected void padSelectedTab(int tabPlacement, int selectedIndex)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.