MoleculeAction
, java.io.Serializable
public class MoleculeActionTranslateTo extends java.lang.Object implements MoleculeAction, java.io.Serializable
Constructor | Description |
---|---|
MoleculeActionTranslateTo(Space space) |
Creates new action with atom position defined by its
center of mass (via MoleculePositionCOM).
|
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed(IMolecule atom) |
|
IMoleculePositionDefinition |
getAtomPositionDefinition() |
|
Vector |
getDestination() |
|
Vector |
getTranslationVector() |
Returns the vector that was used to accomplish the most recent translation action.
|
void |
setAtomPositionDefinition(IMoleculePositionDefinition atomPositionDefinition) |
|
void |
setDestination(Vector newDestination) |
public MoleculeActionTranslateTo(Space space)
space
- public void actionPerformed(IMolecule atom)
actionPerformed
in interface MoleculeAction
public Vector getDestination()
public void setDestination(Vector newDestination)
newDestination
- The destination to set. A local copy
is made of the given vector.public IMoleculePositionDefinition getAtomPositionDefinition()
public void setAtomPositionDefinition(IMoleculePositionDefinition atomPositionDefinition)
atomPositionDefinition
- The atomPositionDefinition to set.public Vector getTranslationVector()