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 of IChemObjects.
Author:
Arvid
Source code:
main
Belongs to CDK module:
renderbasic
  • Field Details

    • EMPTY_SELECTION

      public static IChemObjectSelection EMPTY_SELECTION
      Static implementation of an empty selection.
  • Constructor Details

    • AbstractSelection

      public AbstractSelection()
  • Method Details

    • 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 interface IChemObjectSelection
      Parameters:
      chemModel - an IChemModel to select from.
    • addToAtomContainer

      protected void addToAtomContainer(IAtomContainer ac, IChemObject item)
      Utility method to add an IChemObject to an IAtomContainer.
      Parameters:
      ac - the IAtomContainer to add to
      item - the IChemObject to add