文件切割合并器 6  GBC 简化

简介: 文件切割合并器 6  GBC 简化

import java.awt.*;



public class GBC extends GridBagConstraints

{

 

 

private static final long serialVersionUID = 1L;



public GBC(int gridx, int gridy)

   {

     this.gridx = gridx;

     this.gridy = gridy;

   }


 

   public GBC(int gridx, int gridy, int gridwidth, int gridheight)

   {

     this.gridx = gridx;

     this.gridy = gridy;

     this.gridwidth = gridwidth;

     this.gridheight = gridheight;

   }


 

   public GBC setAnchor(int anchor)

   {

     this.anchor = anchor;

     return this;

   }


 

   public GBC setFill(int fill)

   {

     this.fill = fill;

     return this;

   }


 

   public GBC setWeight(double weightx, double weighty)

   {

     this.weightx = weightx;

     this.weighty = weighty;

     return this;

   }


 

   public GBC setInsets(int distance)

   {

     this.insets = new Insets(distance, distance, distance, distance);

     return this;

   }


 

   public GBC setInsets(int top, int left, int bottom, int right)

   {

     this.insets = new Insets(top, left, bottom, right);

     return this;

   }


 

   public GBC setIpad(int ipadx, int ipady)

   {

     this.ipadx = ipadx;

     this.ipady = ipady;

     return this;

   }

}

————————————————

版权声明:本文为CSDN博主「明明如月学长」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/w605283073/article/details/46572459

相关文章
|
移动开发 JavaScript Java
文件切割合并器 4 帮助类 Help
文件切割合并器 4 帮助类 Help
78 0
文件切割合并器  1 主类  SplitAnd…
文件切割合并器  1 主类  SplitAnd…
107 0
|
编解码 安全 Java
文件切割合并器  下载地址 及 帮助
文件切割合并器  下载地址 及 帮助
92 0
文件切割合并器 5 关于类
文件切割合并器 5 关于类
82 0
|
SQL Java 数据库连接
数据库访问大段文本数据  (myqsl …
数据库访问大段文本数据 myqsl + jdbc +java-io
103 0
|
存储
文件切割合并器 2 切割类 Split
文件切割合并器 2 切割类 Split
111 0
图书管理系统代码 7GBC  网格组布…
图书管理系统代码 7GBC  网格组布…
94 0
文件切割合并器 7 上层界面
文件切割合并器 7 上层界面
76 0
|
JavaScript
图书管理系统代码  3 LibraryMainF…
图书管理系统代码  3 LibraryMainF…
100 0
图书管理系统代码 6 AboutFrame (…
图书管理系统代码 6 AboutFrame (…
143 0