public GrabPoint getMovingPoint(MouseEvent e) {  movingPoint = null;  GrabPoint[] gb = getGrabPoints(); int x = e.getX(); int y = e.getY();  for (int i = gb.length - 1; i >=0; i--) { if (gb[i] != null && gb[i].distance(x, y) == 0) { setMovingPoint(gb[i]);   return gb[i]; } }  setMovingPoint(null); return null;
public GrabPoint getMovingPoint() { return movingPoint;
    public GrabPoint getMovingPoint(MouseEvent e) {	movingPoint = null;	GrabPoint[] gb = getGrabPoints();	int x = e.getX();	int y = e.getY();	for (int i = gb.length - 1; i >=0; i--) {	    if (gb[i] != null && gb[i].distance(x, y) == 0) {		setMovingPoint(gb[i]);		// in case the points are on top of each other, the		// last point in the array will take precidence.		return gb[i];	    }	}	setMovingPoint(null);	return null;    }