public void setCharge(int index, float charge) {
		if (index < 0 || index >= model.getAtomCount())
			return;
		model.getAtom(index).setCharge(charge);
		viewer.setCharge(index, charge);
		repaint();
	}