public class VerticalLayoutManager
extends java.lang.Object
implements java.awt.LayoutManager2, java.io.Serializable
| 构造器和说明 | 
|---|
VerticalLayoutManager()
Constructs a VerticalLayoutManager object. 
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
void | 
addLayoutComponent(java.awt.Component comp,
                  java.lang.Object constraints)
Adds the specified component to the layout, using the specified
 constraint object. 
 | 
void | 
addLayoutComponent(java.lang.String name,
                  java.awt.Component comp)
Adds the specified component with the specified name to
 the layout. 
 | 
float | 
getLayoutAlignmentX(java.awt.Container target)
Returns the alignment along the x axis. 
 | 
float | 
getLayoutAlignmentY(java.awt.Container target)
Returns the alignment along the y axis. 
 | 
void | 
invalidateLayout(java.awt.Container target)
Invalidates the layout, indicating that if the layout manager
 has cached information it should be discarded. 
 | 
void | 
layoutContainer(java.awt.Container target)
Lays out the container. 
 | 
java.awt.Dimension | 
maximumLayoutSize(java.awt.Container target)
Returns the maximum size of this component. 
 | 
java.awt.Dimension | 
minimumLayoutSize(java.awt.Container target)
Calculates the minimum size dimensions for the specified
 panel given the components in the specified parent container. 
 | 
java.awt.Dimension | 
preferredLayoutSize(java.awt.Container target)
Calculates the preferred size dimensions for the specified
 panel given the components in the specified parent container. 
 | 
void | 
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. 
 | 
public VerticalLayoutManager()
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize 在接口中 java.awt.LayoutManagertarget - The component to be laid out.preferredLayoutSize(java.awt.Container)public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize 在接口中 java.awt.LayoutManagertarget - The component to be laid out.minimumLayoutSize(java.awt.Container)public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize 在接口中 java.awt.LayoutManager2target - The component to be laid out.preferredLayoutSize(java.awt.Container)public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
addLayoutComponent 在接口中 java.awt.LayoutManagername - the component namecomp - the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent 在接口中 java.awt.LayoutManagercomp - the component ot be removedpublic void layoutContainer(java.awt.Container target)
layoutContainer 在接口中 java.awt.LayoutManagertarget - The container which needs to be laid out.public void addLayoutComponent(java.awt.Component comp,
                               java.lang.Object constraints)
addLayoutComponent 在接口中 java.awt.LayoutManager2comp - the component to be addedconstraints - where/how the component is added to the layout.public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX 在接口中 java.awt.LayoutManager2target - The target container.public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY 在接口中 java.awt.LayoutManager2target - The target container.public void invalidateLayout(java.awt.Container target)
invalidateLayout 在接口中 java.awt.LayoutManager2target - The target container.