Package com.actelion.research.gui
Class DefaultCompoundCollectionModel<T>
- java.lang.Object
-
- com.actelion.research.gui.DefaultCompoundCollectionModel<T>
-
- All Implemented Interfaces:
CompoundCollectionModel<T>
- Direct Known Subclasses:
DefaultCompoundCollectionModel.IDCode,DefaultCompoundCollectionModel.IDCodeWithName,DefaultCompoundCollectionModel.Molecule,DefaultCompoundCollectionModel.Native
public abstract class DefaultCompoundCollectionModel<T> extends java.lang.Object implements CompoundCollectionModel<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultCompoundCollectionModel.IDCodeThis version of the DefaultCompoundCollectionModel collects molecules as IDCodes.static classDefaultCompoundCollectionModel.IDCodeWithNameThis version of the DefaultCompoundCollectionModel collects molecules as String[2] with idcodes & idcoords (index 0) and molecule name (index 1).static classDefaultCompoundCollectionModel.MoleculeThis version of the DefaultCompoundCollectionModel collects molecules as StereoMolecules.static classDefaultCompoundCollectionModel.NativeThis version of the DefaultCompoundCollectionModel collects IDCodes and StereoMolecules without conversion into their native type.
-
Constructor Summary
Constructors Constructor Description DefaultCompoundCollectionModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddCompound(int index, T compound)voidaddCompound(T compound)voidaddCompoundCollectionListener(CompoundCollectionListener l)voidaddCompoundList(java.util.Collection<T> list)abstract voidaddMolecule(int index, StereoMolecule mol)voidaddMoleculeList(java.util.Collection<StereoMolecule> list)voidclear()TgetCompound(int index)abstract StereoMoleculegetMolecule(int index)StereoMoleculegetMoleculeForDisplay(int index)intgetSize()voidremove(int index)voidremoveCompoundCollectionListener(CompoundCollectionListener l)voidsetCompound(int index, T compound)voidsetCompoundList(java.util.Collection<T> list)abstract voidsetMolecule(int index, StereoMolecule mol)
-
-
-
Method Detail
-
addCompound
public void addCompound(T compound)
- Specified by:
addCompoundin interfaceCompoundCollectionModel<T>
-
addCompound
public void addCompound(int index, T compound)- Specified by:
addCompoundin interfaceCompoundCollectionModel<T>
-
addCompoundList
public void addCompoundList(java.util.Collection<T> list)
- Specified by:
addCompoundListin interfaceCompoundCollectionModel<T>
-
setCompound
public void setCompound(int index, T compound)- Specified by:
setCompoundin interfaceCompoundCollectionModel<T>
-
setCompoundList
public void setCompoundList(java.util.Collection<T> list)
- Specified by:
setCompoundListin interfaceCompoundCollectionModel<T>
-
addCompoundCollectionListener
public void addCompoundCollectionListener(CompoundCollectionListener l)
- Specified by:
addCompoundCollectionListenerin interfaceCompoundCollectionModel<T>
-
getCompound
public T getCompound(int index)
- Specified by:
getCompoundin interfaceCompoundCollectionModel<T>
-
removeCompoundCollectionListener
public void removeCompoundCollectionListener(CompoundCollectionListener l)
- Specified by:
removeCompoundCollectionListenerin interfaceCompoundCollectionModel<T>
-
clear
public void clear()
- Specified by:
clearin interfaceCompoundCollectionModel<T>
-
addMoleculeList
public void addMoleculeList(java.util.Collection<StereoMolecule> list)
- Specified by:
addMoleculeListin interfaceCompoundCollectionModel<T>
-
addMolecule
public abstract void addMolecule(int index, StereoMolecule mol)- Specified by:
addMoleculein interfaceCompoundCollectionModel<T>
-
setMolecule
public abstract void setMolecule(int index, StereoMolecule mol)- Specified by:
setMoleculein interfaceCompoundCollectionModel<T>
-
getMolecule
public abstract StereoMolecule getMolecule(int index)
- Specified by:
getMoleculein interfaceCompoundCollectionModel<T>
-
getMoleculeForDisplay
public StereoMolecule getMoleculeForDisplay(int index)
- Specified by:
getMoleculeForDisplayin interfaceCompoundCollectionModel<T>
-
getSize
public int getSize()
- Specified by:
getSizein interfaceCompoundCollectionModel<T>
-
remove
public void remove(int index)
- Specified by:
removein interfaceCompoundCollectionModel<T>
-
-