©
本文档使用
php.cn手册 发布
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
1 2 |
|
1 |
|
具有 HORIZONTAL_SPLIT 方向的 JSplitPane 的 LayoutManager。
字段摘要 | |
---|---|
protected Component[] |
components
|
protected int[] |
sizes
|
方法摘要 | |
---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
使用指定的约束对象将指定组件添加到布局中。 |
void |
addLayoutComponent(String place,
Component component)
在 place 位置添加组件。 |
protected int |
getAvailableSize(Dimension containerSize,
Insets insets)
返回基于容器大小和 Insets 的可用宽度。 |
protected int |
getInitialLocation(Insets insets)
如果 Insets 不为 null,则返回左边 inset;如果其为 null,则返回 0。 |
float |
getLayoutAlignmentX(Container target)
返回容器沿 X 轴的对齐方式。 |
float |
getLayoutAlignmentY(Container target)
返回容器沿 Y 轴的对齐方式。 |
protected int |
getPreferredSizeOfComponent(Component c)
返回传入 Component 的首选大小的宽度。 |
protected int |
getSizeOfComponent(Component c)
返回传入组件的宽度。 |
protected int[] |
getSizes()
返回组件的大小。 |
void |
invalidateLayout(Container c)
不执行任何操作。 |
void |
layoutContainer(Container container)
进行实际布局。 |
Dimension |
maximumLayoutSize(Container target)
返回最大布局大小,该大小在两个方向上都是 Integer.MAX_VALUE。 |
Dimension |
minimumLayoutSize(Container container)
返回包含子级所需的最小大小。 |
Dimension |
preferredLayoutSize(Container container)
返回包含子级所需的首选大小。 |
void |
removeLayoutComponent(Component component)
根据了解的情况移除指定的组件。 |
protected void |
resetSizeAt(int index)
在传入位置重置 Component 的大小。 |
void |
resetToPreferredSizes()
标记接收者,以便下一次布置此实例时它将请求首选大小。 |
protected void |
setComponentToSize(Component c,
int size,
int location,
Insets insets,
Dimension containerSize)
将组件 c 的宽度设置为 size(将其 x 的位置放置到 location),将 y 和高度分别设置为 insets.top 和 containersize.height 减去上下 insets。 |
protected void |
setSizes(int[] newSizes)
将大小设置为 newSizes 。 |
protected void |
updateComponents()
确定组件。 |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
1 |
|
1 |
|
方法详细信息 |
---|
1 |
|
LayoutManager
中的 layoutContainer
container
- 要布置的容器1 2 |
|
LayoutManager
中的 addLayoutComponent
place
- 要与组件关联的字符串component
- 要添加的组件1 |
|
LayoutManager
中的 minimumLayoutSize
container
- 要布置的组件1 |
|
LayoutManager
中的 preferredLayoutSize
container
- 要布置的容器LayoutManager.minimumLayoutSize(java.awt.Container)
1 |
|
LayoutManager
中的 removeLayoutComponent
component
- 要移除的组件1 2 |
|
LayoutManager2
中的 addLayoutComponent
comp
- 要添加的组件constraints
- 如何将组件添加到布局以及添加到何处。1 |
|
LayoutManager2
中的 getLayoutAlignmentX
1 |
|
LayoutManager2
中的 getLayoutAlignmentY
1 |
|
LayoutManager2
中的 invalidateLayout
1 |
|
LayoutManager2
中的 maximumLayoutSize
Component.getMaximumSize()
,
LayoutManager
1 |
|
1 |
|
1 |
|
newSizes
。
1 |
|
1 |
|
1 |
|
1 2 |
|
1 |
|
1 2 3 4 5 |
|
1 |
|
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。