mapoverlay.java.svn-base
来自「利用J2ME编写的手机应用程序。 功能包括显示图片」· SVN-BASE 代码 · 共 47 行
SVN-BASE
47 行
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 + =
减小字号Ctrl + -
显示快捷键?