/** * method that will be called when mouse presses * @param point , the point mouse press at */ public void onMousePress(Location point){ lastpoint = point; if (isShown && mouse.contains(point)) { isGrabbed = true; } else { isGrabbed = false; } timer.reset(); moved = false; }