public class AtomFilterInShape extends java.lang.Object implements AtomFilter, java.io.Serializable
Constructor and Description |
---|
AtomFilterInShape(Shape shape)
Create filter in which position definition is given by atom's type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(IAtom atom)
Returns true if the atom's position is inside the shape.
|
boolean |
accept(IMolecule mole) |
IAtomPositionDefinition |
getPositionDefinition() |
Shape |
getShape() |
void |
setPositionDefinition(IAtomPositionDefinition positionDefinition)
Sets position definition.
|
void |
setShape(Shape shape) |
public AtomFilterInShape(Shape shape)
public boolean accept(IAtom atom)
accept
in interface AtomFilter
public boolean accept(IMolecule mole)
accept
in interface AtomFilter
public Shape getShape()
public void setShape(Shape shape)
shape
- The shape to set.public IAtomPositionDefinition getPositionDefinition()
public void setPositionDefinition(IAtomPositionDefinition positionDefinition)
positionDefinition
- The positionDefinition to set.