element.java

来自「IA 算法问题」· Java 代码 · 共 31 行

JAVA
31
字号
import java.awt.Color;
import java.awt.Component;
import java.util.ArrayList;

import javax.swing.*;

public class Element extends Object{
	Color refColor;
	int x;
	int y;
	
	int etat;//0 arreter;1 suvrir
	
	Element(int x1,int y1,Color c){
		super();
		x=x1;
		y=y1;
		refColor=c;
		etat=0;

	}
public Color getColor(){return refColor;}
public int getX(){return x;}
public int getY(){return y;}
public void setX(int x1){x=x1;}
public void setY(int y1){y=y1;}
public	void setEtat(int i){etat=i;}

}

⌨️ 快捷键说明

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