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

📄 mapoverlay.java.svn-base

📁 利用J2ME编写的手机应用程序。 功能包括显示图片
💻 SVN-BASE
字号:
package wFramework;

import javax.microedition.lcdui.Graphics;

public class MapOverlay 
{
	protected Map map;
	protected Point pos;
	protected Rect bounds;
	protected Object param;
	
	public MapOverlay(Map map, Point pos, Object param)
	{
		this.map = map;
		this.pos = pos;
		this.param = param;
		this.bounds = new Rect(0, 0, 0, 0);
	}
	
	public void setPos(Point pos)
	{
		this.pos = pos;
	}
	
	public Point getPos()
	{
		return pos;
	}

	public void paint(Graphics g)
	{
	}
	
	public boolean hitTest(Point pos)
	{
		if (this.pos == null || pos == null)
			return false;
		else
			return bounds.testPoint(pos, this.pos);
	}
	
	public Object getParam()
	{
		return param;
	}
}

⌨️ 快捷键说明

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