📄 element.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -