public class RulerLayout
extends java.lang.Object
implements java.awt.LayoutManager, java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
protected int |
BARSIZE |
static java.lang.String |
BOTTOM |
static java.lang.String |
CENTER |
protected java.awt.Component |
designer |
static java.lang.String |
HIRIZONTAL |
protected java.awt.Component |
horScrollBar |
protected java.awt.Component |
hRuler |
static java.lang.String |
HRULER |
protected java.awt.Component |
resizePane |
protected java.awt.Component |
verScrollBar |
static java.lang.String |
VERTICAL |
protected java.awt.Component |
vRuler |
static java.lang.String |
VRULER |
构造器和说明 |
---|
RulerLayout() |
限定符和类型 | 方法和说明 |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
容器增加组件
|
void |
layoutContainer(java.awt.Container target)
布局管理器重新调整内部组件位置
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
计算最小尺寸
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
适合尺寸
|
void |
removeLayoutComponent(java.awt.Component comp)
去除组件
|
public static final java.lang.String CENTER
public static final java.lang.String HIRIZONTAL
public static final java.lang.String VERTICAL
public static final java.lang.String HRULER
public static final java.lang.String VRULER
public static final java.lang.String BOTTOM
protected java.awt.Component designer
protected java.awt.Component horScrollBar
protected java.awt.Component verScrollBar
protected java.awt.Component hRuler
protected java.awt.Component vRuler
protected java.awt.Component resizePane
protected int BARSIZE
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
在接口中 java.awt.LayoutManager
name
- 组件名comp
- 组 件public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
在接口中 java.awt.LayoutManager
comp
- 组件public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
在接口中 java.awt.LayoutManager
target
- 容器public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
在接口中 java.awt.LayoutManager
target
- 容器public void layoutContainer(java.awt.Container target)
layoutContainer
在接口中 java.awt.LayoutManager
target
- 容器