jcpPanel.get2DHub().setValence(atom,null);
}else{
jcpPanel.get2DHub().setValence(atom,valence);
}
}
ChangeValenceModule newActiveModule = new ChangeValenceModule(jcpPanel.get2DHub(), valence==null ? -1 : valence);
newActiveModule.setID("valence");
jcpPanel.get2DHub().setActiveDrawModule(newActiveModule);
jcpPanel.get2DHub().updateView();
}