Package com.actelion.research.gui
Class DefaultCompoundCollectionModel.IDCode
- java.lang.Object
-
- com.actelion.research.gui.DefaultCompoundCollectionModel<java.lang.String>
-
- com.actelion.research.gui.DefaultCompoundCollectionModel.IDCode
-
- All Implemented Interfaces:
CompoundCollectionModel<java.lang.String>
- Enclosing class:
- DefaultCompoundCollectionModel<T>
public static class DefaultCompoundCollectionModel.IDCode extends DefaultCompoundCollectionModel<java.lang.String>
This version of the DefaultCompoundCollectionModel collects molecules as IDCodes. The molecule access functions result in appropriate conversion. It is the preferred model when the number of handled molecules is potentially high and when atom selection or atom colors need to be retained.
-
-
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 IDCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMolecule(int index, StereoMolecule mol)StereoMoleculegetMolecule(int index)voidsetMolecule(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:
getMoleculein interfaceCompoundCollectionModel<java.lang.String>- Specified by:
getMoleculein classDefaultCompoundCollectionModel<java.lang.String>
-
setMolecule
public void setMolecule(int index, StereoMolecule mol)- Specified by:
setMoleculein interfaceCompoundCollectionModel<java.lang.String>- Specified by:
setMoleculein classDefaultCompoundCollectionModel<java.lang.String>
-
addMolecule
public void addMolecule(int index, StereoMolecule mol)- Specified by:
addMoleculein interfaceCompoundCollectionModel<java.lang.String>- Specified by:
addMoleculein classDefaultCompoundCollectionModel<java.lang.String>
-
-