if (((Math.abs(x - nodeX[i])) < DELTA) && ((Math.abs(y - nodeY[i]) < DELTA))) { dragNodeIdx = i;
if ((nodes[i].minX != nodes[i].maxX || nodes[i].minY != nodes[i].maxY) && (Math.abs(x - nodeX[i]) < DELTA) && (Math.abs(y - nodeY[i]) < DELTA)) { dragNodeIdx = i;
            public void mousePressed(MouseEvent e) {                int x = e.getX();                int y = e.getY();		// select the first close node.                for (int i = 0; i < nodes.length; i++)                    if (((Math.abs(x - nodeX[i])) < DELTA)			&& ((Math.abs(y - nodeY[i]) < DELTA))) {			dragNodeIdx = i;			dragNode = nodes[i];			oldx = nodeX[i];			oldy = nodeY[i];			repaint();			return;		    }		// not found		dragNode = null;            }