Code example for RectF

Methods: centerX, centerY

0
        public boolean onDoubleTap(MotionEvent e) {
        	// issue a double click notification if performed in center quadrant 
          	if(pointerAreaTouched(e, POINTER_ACTION_LCLICK))
          	{ 
          		RectF rect = getCurrentPointerArea(POINTER_ACTION_CURSOR);
          		listener.onTouchPointerLeftClick((int)rect.centerX(), (int)rect.centerY(), true);
          		listener.onTouchPointerLeftClick((int)rect.centerX(), (int)rect.centerY(), false);
          	} 
          	return true; 
        } 
	}	 
 
	public TouchPointerView(Context context) {
		super(context);
		initTouchPointer(context);
	} 
 
	public TouchPointerView(Context context, AttributeSet attrs) {
		super(context, attrs);
		initTouchPointer(context);
	}