|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.atom.AtomFilterInShape
public class AtomFilterInShape
Filter that accepts atom if it is inside a specified Shape instance. Position of atom is determined by an AtomPositionDefinition, which if unspecified defaults for each atom to that given by the atom's type.
| Constructor Summary | |
|---|---|
AtomFilterInShape(Shape shape)
Create filter in which position definition is given by atom's type. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtomFilterInShape(Shape shape)
| Method Detail |
|---|
public boolean accept(IAtom atom)
accept in interface AtomFilterpublic boolean accept(IMolecule mole)
accept in interface AtomFilterpublic 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||