Code example for Point

0
	} 
 
	public void drawToCanvas(final Canvas c, final Projection pj) {
        if (this.mCenter == null) return;
 
        final Point screenCoords = new Point();
        pj.toMapPixels(this.mCenter, screenCoords);
        int xpos = screenCoords.x - this.mHotSpot.x;
        int ypos = screenCoords.y - this.mHotSpot.y;
        c.drawBitmap(this.icon, xpos, ypos, this.mPaint);
	} 
 
    public boolean onSingleTapUp(final MotionEvent e, final Projection pj) {
        if (descr == null) return false;
 
        GeoPoint tap = pj.fromPixels((int)e.getX(), (int)e.getY());
        float distance = mCenter.distanceTo(tap);
 
        if (distance > MAX_DISTANCE) {
            return false; 
        }