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 class
DefaultCompoundCollectionModel.IDCode
This version of the DefaultCompoundCollectionModel collects molecules as IDCodes.static class
DefaultCompoundCollectionModel.IDCodeWithName
This version of the DefaultCompoundCollectionModel collects molecules as String[2] with idcodes & idcoords (index 0) and molecule name (index 1).static class
DefaultCompoundCollectionModel.Molecule
This version of the DefaultCompoundCollectionModel collects molecules as StereoMolecules.static class
DefaultCompoundCollectionModel.Native
This 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 void
addCompound(int index, T compound)
void
addCompound(T compound)
void
addCompoundCollectionListener(CompoundCollectionListener l)
void
addCompoundList(java.util.Collection<T> list)
abstract void
addMolecule(int index, StereoMolecule mol)
void
addMoleculeList(java.util.Collection<StereoMolecule> list)
void
clear()
T
getCompound(int index)
abstract StereoMolecule
getMolecule(int index)
StereoMolecule
getMoleculeForDisplay(int index)
int
getSize()
void
remove(int index)
void
removeCompoundCollectionListener(CompoundCollectionListener l)
void
setCompound(int index, T compound)
void
setCompoundList(java.util.Collection<T> list)
abstract void
setMolecule(int index, StereoMolecule mol)
-
-
-
Method Detail
-
addCompound
public void addCompound(T compound)
- Specified by:
addCompound
in interfaceCompoundCollectionModel<T>
-
addCompound
public void addCompound(int index, T compound)
- Specified by:
addCompound
in interfaceCompoundCollectionModel<T>
-
addCompoundList
public void addCompoundList(java.util.Collection<T> list)
- Specified by:
addCompoundList
in interfaceCompoundCollectionModel<T>
-
setCompound
public void setCompound(int index, T compound)
- Specified by:
setCompound
in interfaceCompoundCollectionModel<T>
-
setCompoundList
public void setCompoundList(java.util.Collection<T> list)
- Specified by:
setCompoundList
in interfaceCompoundCollectionModel<T>
-
addCompoundCollectionListener
public void addCompoundCollectionListener(CompoundCollectionListener l)
- Specified by:
addCompoundCollectionListener
in interfaceCompoundCollectionModel<T>
-
getCompound
public T getCompound(int index)
- Specified by:
getCompound
in interfaceCompoundCollectionModel<T>
-
removeCompoundCollectionListener
public void removeCompoundCollectionListener(CompoundCollectionListener l)
- Specified by:
removeCompoundCollectionListener
in interfaceCompoundCollectionModel<T>
-
clear
public void clear()
- Specified by:
clear
in interfaceCompoundCollectionModel<T>
-
addMoleculeList
public void addMoleculeList(java.util.Collection<StereoMolecule> list)
- Specified by:
addMoleculeList
in interfaceCompoundCollectionModel<T>
-
addMolecule
public abstract void addMolecule(int index, StereoMolecule mol)
- Specified by:
addMolecule
in interfaceCompoundCollectionModel<T>
-
setMolecule
public abstract void setMolecule(int index, StereoMolecule mol)
- Specified by:
setMolecule
in interfaceCompoundCollectionModel<T>
-
getMolecule
public abstract StereoMolecule getMolecule(int index)
- Specified by:
getMolecule
in interfaceCompoundCollectionModel<T>
-
getMoleculeForDisplay
public StereoMolecule getMoleculeForDisplay(int index)
- Specified by:
getMoleculeForDisplay
in interfaceCompoundCollectionModel<T>
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceCompoundCollectionModel<T>
-
remove
public void remove(int index)
- Specified by:
remove
in interfaceCompoundCollectionModel<T>
-
-