public class LeftCenterRightLayout
extends java.lang.Object
implements java.awt.LayoutManager, java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CENTER |
static java.lang.String |
LEFT |
static java.lang.String |
RIGHT |
构造器和说明 |
---|
LeftCenterRightLayout() |
限定符和类型 | 方法和说明 |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
If the layout manager uses a per-component string,
adds the component
comp to the layout,
associating it
with the string specified by name . |
void |
layoutContainer(java.awt.Container target)
Lays out the specified container.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Calculates the minimum size dimensions for the specified
container, given the components it contains.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Calculates the preferred size dimensions for the specified
container, given the components it contains.
|
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout.
|
public static final java.lang.String LEFT
public static final java.lang.String CENTER
public static final java.lang.String RIGHT
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
comp
to the layout,
associating it
with the string specified by name
.addLayoutComponent
在接口中 java.awt.LayoutManager
name
- the string to be associated with the componentcomp
- the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
在接口中 java.awt.LayoutManager
comp
- the component to be removedpublic java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
在接口中 java.awt.LayoutManager
target
- the container to be laid outminimumLayoutSize(java.awt.Container)
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
在接口中 java.awt.LayoutManager
target
- the component to be laid outpreferredLayoutSize(java.awt.Container)
public void layoutContainer(java.awt.Container target)
layoutContainer
在接口中 java.awt.LayoutManager
target
- the container to be laid out