System.out.println("Handling ROI mousedown "+e);
	void handleRoiMouseDown(MouseEvent e) {		System.out.println("Handling ROI mousedown "+e);		int sx = e.getX();		int sy = e.getY();		int ox = offScreenX(sx);		int oy = offScreenY(sy);		Roi roi = imp.getRoi();		int handle = roi!=null?roi.isHandle(sx, sy):-1;				setRoiModState(e, roi, handle);		if (roi!=null) {			Rectangle r = roi.getBounds();			int type = roi.getType();			if (type==Roi.RECTANGLE && r.width==imp.getWidth() && r.height==imp.getHeight()			&& roi.getPasteMode()==Roi.NOT_PASTING) {				imp.killRoi();				return;			}			if (handle>=0) {				roi.mouseDownInHandle(handle, sx, sy);				return;			}			if (roi.contains(ox, oy)) {				if (roiModState==NO_MODS)					roi.handleMouseDown(sx, sy);				else {					imp.killRoi();					imp.createNewRoi(ox,oy);				}				return;			}			if ((type==Roi.POLYGON || type==Roi.POLYLINE || type==Roi.ANGLE)			&& roi.getState()==roi.CONSTRUCTING)				return;		}		imp.createNewRoi(ox,oy);	}