System.out.println("Mouse Pressed at "+x+", "+y);
	public void mousePressed(MouseEvent e) {		if (ij==null) return;		int toolID = Toolbar.getToolId();				int x = e.getX();		int y = e.getY();		System.out.println("Mouse Pressed at "+x+", "+y);		flags = e.getModifiers();		if (IJ.debugMode) IJ.log("Mouse pressed: (" + x + "," + y + ")" + ij.modifiers(flags));				//if (toolID!=Toolbar.MAGNIFIER && e.isPopupTrigger()) {		if (toolID!=Toolbar.MAGNIFIER && (e.isPopupTrigger() || (flags & Event.META_MASK)!=0)) {			handlePopupMenu(e);			return;		}		int ox = offScreenX(x);		int oy = offScreenY(y);		xMouse = ox; yMouse = oy;		switch (toolID) {			case Toolbar.MAGNIFIER:				if ((flags & (Event.ALT_MASK|Event.META_MASK|Event.CTRL_MASK))!=0)					zoomOut(x, y);				else					zoomIn(x, y);				break;			case Toolbar.DROPPER:				setDrawingColor(ox, oy, IJ.altKeyDown());				break;			case Toolbar.CROSSHAIR:				IJ.doCommand("Measure");				break;			case Toolbar.WAND:				Roi roi = imp.getRoi();				if (roi!=null && roi.contains(ox, oy)) {					Rectangle r = roi.getBounds();					if (r.width==imageWidth && r.height==imageHeight)						imp.killRoi();					else {						handleRoiMouseDown(e);						return;					}				}				if (roi!=null) {					int handle = roi.isHandle(x, y);					if (handle>=0) {						roi.mouseDownInHandle(handle, x, y);						return;					}				}				setRoiModState(e, roi, -1);				int npoints = IJ.doWand(ox, oy);				if (Recorder.record && npoints>0)					Recorder.record("doWand", ox, oy);				break;			default:  //selection tool				handleRoiMouseDown(e);		}	}