Exemplo n.º 1
0
 /**
  * Removes the single electron at the given position from the AtomContainer.
  *
  * @param position The position of the SingleElectron to be removed.
  */
 public ISingleElectron removeSingleElectron(int position) {
   ISingleElectron se = singleElectrons[position];
   se.removeListener(this);
   for (int i = position; i < singleElectronCount - 1; i++) {
     singleElectrons[i] = singleElectrons[i + 1];
   }
   singleElectrons[singleElectronCount - 1] = null;
   singleElectronCount--;
   notifyChanged();
   return se;
 }