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

📄 staticball.java

📁 J2ME的手机小游戏,自己的毕业设计的程序
💻 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 + -