Class AbstractSelection
- java.lang.Object
-
- org.openscience.cdk.renderer.selection.AbstractSelection
-
- All Implemented Interfaces:
IChemObjectSelection
public abstract class AbstractSelection extends Object implements IChemObjectSelection
An abstract selection ofIChemObject
s.- Author:
- Arvid
- Source code:
- main
- Belongs to CDK module:
- renderbasic
-
-
Field Summary
Fields Modifier and Type Field Description static IChemObjectSelection
EMPTY_SELECTION
Static implementation of an empty selection.
-
Constructor Summary
Constructors Constructor Description AbstractSelection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addToAtomContainer(IAtomContainer ac, IChemObject item)
Utility method to add anIChemObject
to anIAtomContainer
.void
select(IChemModel chemModel)
Perform a selection by some method.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openscience.cdk.renderer.selection.IChemObjectSelection
contains, elements, getConnectedAtomContainer, isFilled
-
-
-
-
Field Detail
-
EMPTY_SELECTION
public static IChemObjectSelection EMPTY_SELECTION
Static implementation of an empty selection.
-
-
Method Detail
-
select
public void select(IChemModel chemModel)
Perform a selection by some method. This is used for selecting outside the hub, for example: IChemModel model = createModelBySomeMethod(); selection.select(model); renderModel.setSelection(selection);- Specified by:
select
in interfaceIChemObjectSelection
- Parameters:
chemModel
- an IChemModel to select from.
-
addToAtomContainer
protected void addToAtomContainer(IAtomContainer ac, IChemObject item)
Utility method to add anIChemObject
to anIAtomContainer
.- Parameters:
ac
- theIAtomContainer
to add toitem
- theIChemObject
to add
-
-