Interface IChemObjectSelection

  • All Known Implementing Classes:
    AbstractSelection

    public interface IChemObjectSelection
    A selection of some atoms and bonds from an IAtomContainer or IChemModel.
    Author:
    maclean
    Source code:
    main
    Belongs to CDK module:
    render
    • Method Detail

      • select

        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);
        Parameters:
        chemModel - an IChemModel to select from.
      • getConnectedAtomContainer

        IAtomContainer getConnectedAtomContainer()
        Make an IAtomContainer where all the bonds only have atoms that are in the selection.
        Returns:
        a well defined atom container.
      • isFilled

        boolean isFilled()
        The opposite of a method like "isEmpty".
        Returns:
        true if there is anything in the selection
      • contains

        boolean contains​(IChemObject obj)
        Determines if the IChemObject is part of the current selection.
        Parameters:
        obj - IChemObject which might be part of the selection
        Returns:
        true, if the given obj is part of the selection