📄 staticball.java
字号:
import javax.microedition.lcdui.Graphics;
public class StaticBall {
int r=3;
int xo=0;
int yo=0;
public StaticBall(int xo,int yo)
{
this.xo=xo;
this.yo=yo;
}
public void draw(Graphics g,int x,int y)
{
this.xo=x;
this.yo=y;
g.drawArc(xo - r, yo - r, 2 * r, 2 * r, 0, 360);
}
public int getXo()
{
return xo;
}
public void setXo(int xo)
{
this.xo = xo;
}
public int getYo()
{
return yo;
}
public void setYo(int yo)
{
this.yo = yo;
}
public void setR(int r)
{
this.r=r;
}
public int getR()
{
return r;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -