System.err.println("2 presses..");
System.err.println("2 presses. node is "+node);
	private void mousePressedLinkingModules(PNode node,PInputEvent e) {		int count = e.getClickCount();		System.err.println("node is..."+node);		if (node instanceof ParamLink)			System.err.println("param link");		if (node instanceof ModuleLink)			System.err.println("module link");				System.err.println("caling mouse pressed linking modules..");		if (count ==2) {			System.err.println("2 presses..");			if (node instanceof FormalParameter) {				FormalParameter p = (FormalParameter) node;				ModuleView mod = p.getModuleView();				finishModuleLinks(mod);			}			else if (node instanceof ModuleView) {				finishModuleLinks((ModuleView) node);			}			else				cancelModuleLinks();		}		else if (node instanceof PCamera){ // single click on camera			System.err.println("on camera");			//when linking modules..			System.err.println("adding an intermediate point to modules link");						Iterator iter = links.iterator();			Point2D pos = e.getPosition();			ParamLink lnk;			int size = links.size();			float y = ((float) pos.getY()) - size/2*SPACING;			while (iter.hasNext()) {				lnk = (ParamLink) iter.next();				lnk.setIntermediatePoint((float) pos.getX(),y);				y += SPACING;			}		}		e.setHandled(true);	}