介绍
是用来定义的接口的类知道如何布置根据布局约束对象的容器的接口LayoutManger。
类的声明
以下是声明的java.awt.LayoutManager2接口:
public interface LayoutManger2 extends LayoutManager
接口中的方法
| S.N. | 方法和说明 | 
|---|---|
| 1 | 
				void addLayoutComponent(Component comp, Object constraints)  Adds the specified component to the layout, using the specified constraint object.  | 
		
| 2 | 
				float getLayoutAlignmentX(Container target)  Returns the alignment along the x axis.  | 
		
| 3 | 
				float getLayoutAlignmentY(Container target)  Returns the alignment along the y axis.  | 
		
| 4 | 
				void invalidateLayout(Container target) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.  | 
		
| 5 | 
				Dimension maximumLayoutSize(Container target)  Calculates the maximum size dimensions for the specified container, given the components it contains.  | 
		
						上一篇:
								LayoutManager 接口
												下一篇:
								AWT BorderLayout
												
						
						
					
					
					