Logo Search packages:      
Sourcecode: cdk version File versions  Download package

void org::openscience::cdk::ChemObject::notifyChanged (  )  [inline, inherited]

This should be triggered by an method that changes the content of an object to that the registered listeners can react to it.

Implements org::openscience::cdk::interfaces::IChemObject.

Reimplemented in org::openscience::cdk::debug::DebugAminoAcid, org::openscience::cdk::debug::DebugAtom, org::openscience::cdk::debug::DebugAtomContainer, org::openscience::cdk::debug::DebugAtomContainerSet, org::openscience::cdk::debug::DebugAtomParity, org::openscience::cdk::debug::DebugAtomType, org::openscience::cdk::debug::DebugBioPolymer, org::openscience::cdk::debug::DebugBond, org::openscience::cdk::debug::DebugChemFile, org::openscience::cdk::debug::DebugChemModel, org::openscience::cdk::debug::DebugChemObject, org::openscience::cdk::debug::DebugChemSequence, org::openscience::cdk::debug::DebugCrystal, org::openscience::cdk::debug::DebugElectronContainer, org::openscience::cdk::debug::DebugElement, org::openscience::cdk::debug::DebugIsotope, org::openscience::cdk::debug::DebugLonePair, org::openscience::cdk::debug::DebugMapping, org::openscience::cdk::debug::DebugMolecule, org::openscience::cdk::debug::DebugMoleculeSet, org::openscience::cdk::debug::DebugMonomer, org::openscience::cdk::debug::DebugPolymer, org::openscience::cdk::debug::DebugPseudoAtom, org::openscience::cdk::debug::DebugReaction, org::openscience::cdk::debug::DebugReactionSet, org::openscience::cdk::debug::DebugRing, org::openscience::cdk::debug::DebugSingleElectron, and org::openscience::cdk::debug::DebugStrand.

Definition at line 184 of file ChemObject.java.

References org::openscience::cdk::ChemObject::getListenerCount(), org::openscience::cdk::ChemObject::getNotification(), and org::openscience::cdk::ChemObject::lazyChemObjectListeners().

Referenced by org::openscience::cdk::AtomContainer::add(), org::openscience::cdk::Reaction::addAgent(), org::openscience::cdk::AtomContainer::addAtom(), org::openscience::cdk::AtomContainerSet::addAtomContainer(), org::openscience::cdk::AtomContainer::addBond(), org::openscience::cdk::ChemSequence::addChemModel(), org::openscience::cdk::ChemFile::addChemSequence(), org::openscience::cdk::AtomContainer::addLonePair(), org::openscience::cdk::Reaction::addMapping(), org::openscience::cdk::Reaction::addReactant(), org::openscience::cdk::ReactionSet::addReaction(), org::openscience::cdk::AtomContainer::addSingleElectron(), org::openscience::cdk::AtomContainerSet::removeAllAtomContainers(), org::openscience::cdk::AtomContainer::removeAllBonds(), org::openscience::cdk::AtomContainer::removeAllElectronContainers(), org::openscience::cdk::AtomContainer::removeAllElements(), org::openscience::cdk::ReactionSet::removeAllReactions(), org::openscience::cdk::AtomContainer::removeAtom(), org::openscience::cdk::AtomContainer::removeAtomAndConnectedElectronContainers(), org::openscience::cdk::AtomContainerSet::removeAtomContainer(), org::openscience::cdk::AtomContainer::removeBond(), org::openscience::cdk::ChemSequence::removeChemModel(), org::openscience::cdk::ChemFile::removeChemSequence(), org::openscience::cdk::AtomContainer::removeLonePair(), org::openscience::cdk::Reaction::removeMapping(), org::openscience::cdk::ReactionSet::removeReaction(), org::openscience::cdk::AtomContainer::removeSingleElectron(), org::openscience::cdk::AtomContainerSet::replaceAtomContainer(), org::openscience::cdk::Crystal::setA(), org::openscience::cdk::SingleElectron::setAtom(), org::openscience::cdk::LonePair::setAtom(), org::openscience::cdk::Bond::setAtom(), org::openscience::cdk::AtomContainer::setAtom(), org::openscience::cdk::Association::setAtomAt(), org::openscience::cdk::Element::setAtomicNumber(), org::openscience::cdk::Bond::setAtoms(), org::openscience::cdk::AtomContainer::setAtoms(), org::openscience::cdk::Association::setAtoms(), org::openscience::cdk::AtomType::setAtomTypeName(), org::openscience::cdk::Crystal::setB(), org::openscience::cdk::AtomType::setBondOrderSum(), org::openscience::cdk::Crystal::setC(), org::openscience::cdk::PeriodicTableElement::setCASid(), org::openscience::cdk::Atom::setCharge(), org::openscience::cdk::PeriodicTableElement::setChemicalSerie(), org::openscience::cdk::AtomType::setCovalentRadius(), org::openscience::cdk::ChemModel::setCrystal(), org::openscience::cdk::Reaction::setDirection(), org::openscience::cdk::ElectronContainer::setElectronCount(), org::openscience::cdk::Isotope::setExactMass(), org::openscience::cdk::ChemObject::setFlag(), org::openscience::cdk::AtomType::setFormalCharge(), org::openscience::cdk::AtomType::setFormalNeighbourCount(), org::openscience::cdk::Atom::setFractionalPoint3d(), org::openscience::cdk::Fragment::setFreeValences(), org::openscience::cdk::PeriodicTableElement::setGroup(), org::openscience::cdk::AtomType::setHybridization(), org::openscience::cdk::Atom::setHydrogenCount(), org::openscience::cdk::ChemObject::setID(), org::openscience::cdk::PseudoAtom::setLabel(), org::openscience::cdk::Isotope::setMassNumber(), org::openscience::cdk::AtomType::setMaxBondOrder(), org::openscience::cdk::ChemModel::setMoleculeSet(), org::openscience::cdk::Monomer::setMonomerName(), org::openscience::cdk::Monomer::setMonomerType(), org::openscience::cdk::AtomContainerSet::setMultiplier(), org::openscience::cdk::AtomContainerSet::setMultipliers(), org::openscience::cdk::PeriodicTableElement::setName(), org::openscience::cdk::Isotope::setNaturalAbundance(), org::openscience::cdk::Bond::setOrder(), org::openscience::cdk::PeriodicTableElement::setPeriod(), org::openscience::cdk::PeriodicTableElement::setPhase(), org::openscience::cdk::Atom::setPoint2d(), org::openscience::cdk::Atom::setPoint3d(), org::openscience::cdk::Reaction::setProductCoefficient(), org::openscience::cdk::Reaction::setProductCoefficients(), org::openscience::cdk::Reaction::setProducts(), org::openscience::cdk::ChemObject::setProperties(), org::openscience::cdk::ChemObject::setProperty(), org::openscience::cdk::Reaction::setReactantCoefficient(), org::openscience::cdk::Reaction::setReactantCoefficients(), org::openscience::cdk::Reaction::setReactants(), org::openscience::cdk::ChemModel::setReactionSet(), org::openscience::cdk::ChemModel::setRingSet(), org::openscience::cdk::Crystal::setSpaceGroup(), org::openscience::cdk::Bond::setStereo(), org::openscience::cdk::Atom::setStereoParity(), org::openscience::cdk::Element::setSymbol(), org::openscience::cdk::Fragment::setTitle(), org::openscience::cdk::AtomType::setValency(), org::openscience::cdk::AtomType::setVanderwaalsRadius(), org::openscience::cdk::Crystal::setZ(), org::openscience::cdk::ReactionSet::stateChanged(), org::openscience::cdk::MoleculeSet::stateChanged(), org::openscience::cdk::ChemSequence::stateChanged(), org::openscience::cdk::ChemModel::stateChanged(), org::openscience::cdk::ChemFile::stateChanged(), org::openscience::cdk::AtomContainerSet::stateChanged(), and org::openscience::cdk::AtomContainer::stateChanged().

                                  {
        if (getNotification() && getListenerCount() > 0) {
            List listeners = lazyChemObjectListeners();
            for (int f = 0; f < listeners.size(); f++) {
                ((IChemObjectListener) listeners.get(f)).stateChanged(
                    new org.openscience.cdk.event.ChemObjectChangeEvent(this)
                );
            }
        }
      }


Generated by  Doxygen 1.6.0   Back to index