Package com.actelion.research.gui
Class DefaultCompoundCollectionModel.Molecule
- java.lang.Object
-
- com.actelion.research.gui.DefaultCompoundCollectionModel<StereoMolecule>
-
- com.actelion.research.gui.DefaultCompoundCollectionModel.Molecule
-
- All Implemented Interfaces:
CompoundCollectionModel<StereoMolecule>
- Enclosing class:
- DefaultCompoundCollectionModel<T>
public static class DefaultCompoundCollectionModel.Molecule extends DefaultCompoundCollectionModel<StereoMolecule>
This version of the DefaultCompoundCollectionModel collects molecules as StereoMolecules. It is the preferred model when the number of handled molecules is limited and when specific molecule features beyond idcode, atom coordinates, and molecule name must not get lost.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.actelion.research.gui.DefaultCompoundCollectionModel
DefaultCompoundCollectionModel.IDCode, DefaultCompoundCollectionModel.IDCodeWithName, DefaultCompoundCollectionModel.Molecule, DefaultCompoundCollectionModel.Native
-
-
Constructor Summary
Constructors Constructor Description Molecule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMolecule(int index, StereoMolecule mol)
StereoMolecule
getMolecule(int index)
void
setMolecule(int index, StereoMolecule mol)
-
Methods inherited from class com.actelion.research.gui.DefaultCompoundCollectionModel
addCompound, addCompound, addCompoundCollectionListener, addCompoundList, addMoleculeList, clear, getCompound, getMoleculeForDisplay, getSize, remove, removeCompoundCollectionListener, setCompound, setCompoundList
-
-
-
-
Method Detail
-
getMolecule
public StereoMolecule getMolecule(int index)
- Specified by:
getMolecule
in interfaceCompoundCollectionModel<StereoMolecule>
- Specified by:
getMolecule
in classDefaultCompoundCollectionModel<StereoMolecule>
-
setMolecule
public void setMolecule(int index, StereoMolecule mol)
- Specified by:
setMolecule
in interfaceCompoundCollectionModel<StereoMolecule>
- Specified by:
setMolecule
in classDefaultCompoundCollectionModel<StereoMolecule>
-
addMolecule
public void addMolecule(int index, StereoMolecule mol)
- Specified by:
addMolecule
in interfaceCompoundCollectionModel<StereoMolecule>
- Specified by:
addMolecule
in classDefaultCompoundCollectionModel<StereoMolecule>
-
-