|
|
|
@ -32,39 +32,21 @@ public class FRGUIPaneFactory {
|
|
|
|
|
public static final int HEIGHT_PARA = 25; |
|
|
|
|
public static final int HEIGHT_OFFSET = 50; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 创建一个靠左的水平间隙为2的流式布局 |
|
|
|
|
* |
|
|
|
|
* @return FlowLayout对象 |
|
|
|
|
*/ |
|
|
|
|
public static LayoutManager createBoxFlowLayout() { // createBoxFlowLayout 图表用到的比较多
|
|
|
|
|
return new FlowLayout(FlowLayout.LEFT, 2, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 创建一个靠左的水平间隙为2的流式布局,支持RTL |
|
|
|
|
* |
|
|
|
|
* @return FlowLayout对象 |
|
|
|
|
*/ |
|
|
|
|
public static LayoutManager createBoxLeadingLayout() { // createBoxFlowLayout 图表用到的比较多
|
|
|
|
|
public static LayoutManager createBoxFlowLayout() { // createBoxFlowLayout 图表用到的比较多
|
|
|
|
|
return new FlowLayout(FlowLayout.LEADING, 2, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 创建一个靠左的布局 |
|
|
|
|
* |
|
|
|
|
* @return FlowLayout对象 |
|
|
|
|
*/ |
|
|
|
|
public static LayoutManager createLeftZeroLayout() { |
|
|
|
|
return new FlowLayout(FlowLayout.LEFT, 0, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 创建一个靠左的布局,支持RTL |
|
|
|
|
* |
|
|
|
|
* @return FlowLayout对象 |
|
|
|
|
*/ |
|
|
|
|
public static LayoutManager createLeadingZeroLayout() { |
|
|
|
|
public static LayoutManager createLeftZeroLayout() { |
|
|
|
|
return new FlowLayout(FlowLayout.LEADING, 0, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|