public boolean hit(Rectangle rect,Shape s,boolean onStroke){
  return mGraphics.hit(rect,s,onStroke);
}

public boolean hit ( Rectangle rect , Shape s , boolean onStroke ) { return mGraphics . hit ( rect , s , onStroke ) ; }
checks to see if the outline of a shape intersects the specified rectangle in device space . the rendering attributes taken into account include the clip , transform , and stroke attributes .
