构造器
new FlowLayout()
父类:
方法
doLayout(objects)
执行布局
参数:
| Name | Type | Description | 
|---|---|---|
objects | 
            
            Array | 要被布局的节点对象数组  | 
        
setCenter(centerX, centerY)
- 继承自:
 
设置布局后的中心坐标
参数:
| Name | Type | Description | 
|---|---|---|
centerX | 
            
            Number | |
centerY | 
            
            Number | 
setMargin(marginTop, marginRight, marginBottom, marginLeft)
- 继承自:
 
设置节点间隔
参数:
| Name | Type | Description | 
|---|---|---|
marginTop | 
            
            Number | 上  | 
        
marginRight | 
            
            Number | 右  | 
        
marginBottom | 
            
            Number | 下  | 
        
marginLeft | 
            
            Number | 左  | 
        
setSize(width, height)
设置最大高度 和 最大宽度,不为null的生效
参数:
| Name | Type | Description | 
|---|---|---|
width | 
            
            Number | null | 最大宽度  | 
        
height | 
            
            Number | null | 最大高度  | 
        
setTime(time)
- 继承自:
 
设置动画时长, 有了动画时长就会出现动画效果
参数:
| Name | Type | Description | 
|---|---|---|
time | 
            
            Number | 
setXY(startX, startY)
- 继承自:
 
设置布局后左上角的坐标
参数:
| Name | Type | Description | 
|---|---|---|
startX | 
            
            Number | |
startY | 
            
            Number |