📄 mapoverlay.java.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 + -