AtomAction
, java.io.Serializable
public class AtomActionTranslateBy extends java.lang.Object implements AtomAction, java.io.Serializable
Constructor | Description |
---|---|
AtomActionTranslateBy(Space space) |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed(IAtom atom) |
Performs the defined action on the specified atom
|
Vector |
getTranslationVector() |
Returns the translation vector, the distance that the
atom will be moved by this action.
|
void |
setTranslationVector(Vector translationVector) |
public AtomActionTranslateBy(Space space)
public void actionPerformed(IAtom atom)
AtomAction
actionPerformed
in interface AtomAction
atom
- the specified atompublic Vector getTranslationVector()
public void setTranslationVector(Vector translationVector)
translationVector
- The translation vector to set. A local copy
is made of the given vector.