⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gbc.java

📁 基于java开发的OS中经典PV算法:生产者和消费者算法的演示。
💻 JAVA
字号:
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 setInsets(int ipadx,int ipady){
		this.ipadx=ipadx;
		this.ipady=ipady;
		return this;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -