if (Debug.debugging("omgraphics")) { if (omd.omg != null && isVague()) { Debug.output(this.getClass().getName() + " detecting hit and vagueness"); omd.omg = this; } else if (omd.omg != null && !isVague()) { Debug.output(this.getClass().getName() + " detecting hit, no vagueness, returning contained "  + omd.omg.getClass().getName()); } }
    protected synchronized OMDist _findClosest(int x, int y, float limit, boolean resetSelect) {	OMDist omd = new OMDist();	OMDist tomd;	ListIterator iterator;	int i;	if (size() != 0) {	    if (traverseMode == FIRST_ADDED_ON_TOP) {		i = 0;		iterator = graphics.listIterator();		while (iterator.hasNext()) {		    tomd = findClosestTest(omd, i, (OMGeometry) iterator.next(), 					   x, y, limit, resetSelect);		    if (tomd == null) continue;		    omd = tomd;  // for style		    if (omd.d == 0) break;		    i++;		}	    } else {		i = graphics.size();		iterator = graphics.listIterator(i);		while (iterator.hasPrevious()) {		    tomd = findClosestTest(omd, i, (OMGeometry) iterator.previous(), 					   x, y, limit, resetSelect);		    if (tomd == null) continue;		    omd = tomd;  // for style		    if (omd.d == 0) break;		    i--;		}	    }	}	return omd;    }