title: How to know if mouse clicked point belongs to a rectangle or not?
body: <p>How to know the coordinates of a point in a rectangle that is drawn using graphics mechanism?
  I want to recognize the rectangle on the basis of coordinate if the mouse click coordinate belong to the a rectangle i want to identify that rectangle.</p>
  
  <p>EDITED I have drawn multiple rectangle, i want to recognize the rectangle on the basis of the mouse is clicked.</p>