📄 circlewall.java
字号:
package com.bjsxt.tank.circle;
import java.awt.Color;
import java.awt.Graphics;
import com.bjsxt.tank.core.Wall;
public class CircleWall extends Wall {
public CircleWall(int x, int y, int width, int height) {
super(x, y, width, height);
// TODO Auto-generated constructor stub
}
@Override
public void draw(Graphics g) {
Color c = g.getColor();
g.setColor(Color.BLACK);
g.fillOval(x, y, width, height);
g.setColor(c);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -