Exemplo n.º 1
0
 /**
  * Removes the lone pair at the given position from the AtomContainer.
  *
  * @param position The position of the LonePair to be removed.
  */
 public ILonePair removeLonePair(int position) {
   ILonePair lp = lonePairs[position];
   lp.removeListener(this);
   for (int i = position; i < lonePairCount - 1; i++) {
     lonePairs[i] = lonePairs[i + 1];
   }
   lonePairs[lonePairCount - 1] = null;
   lonePairCount--;
   notifyChanged();
   return lp;
 }