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

void org::openscience::cdk::ChemSequence::removeChemModel ( int  pos  )  [inline, inherited]

Remove a ChemModel from this ChemSequence.

Parameters:
pos The position of the ChemModel to be removed.

Implements org::openscience::cdk::interfaces::IChemSequence.

Reimplemented in org::openscience::cdk::debug::DebugChemSequence.

Definition at line 110 of file ChemSequence.java.

References org::openscience::cdk::ChemSequence::chemModelCount, org::openscience::cdk::ChemSequence::chemModels(), and org::openscience::cdk::ChemObject::notifyChanged().

                                           {
            chemModels[pos].removeListener(this);
            for (int i = pos; i < chemModelCount - 1; i++) {
                  chemModels[i] = chemModels[i + 1];
            }
            chemModels[chemModelCount - 1] = null;
            chemModelCount--;
            notifyChanged();
      }


Generated by  Doxygen 1.6.0   Back to index