コード例 #1
0
ファイル: Step.java プロジェクト: feldmarshall/tracker
 /**
  * Centers the hit testing rectangle on the specified screen point.
  *
  * @param xpix the x pixel position
  * @param ypix the y pixel position
  */
 protected void setHitRectCenter(int xpix, int ypix) {
   hitRect.setLocation(xpix - hitRect.width / 2, ypix - hitRect.height / 2);
 }