Exemple #1
0
 /** Removes electronContainers from this container. */
 public void removeAllElectronContainers() {
   removeAllBonds();
   for (int f = 0; f < getLonePairCount(); f++) {
     getLonePair(f).removeListener(this);
   }
   for (int f = 0; f < getSingleElectronCount(); f++) {
     getSingleElectron(f).removeListener(this);
   }
   lonePairs = new ILonePair[growArraySize];
   singleElectrons = new ISingleElectron[growArraySize];
   lonePairCount = 0;
   singleElectronCount = 0;
   notifyChanged();
 }
 public void removeAllBonds() {
   logger.debug("Removing all bonds");
   super.removeAllBonds();
 }