AtomAction, java.io.Serializablepublic 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)
AtomActionactionPerformed in interface AtomActionatom - 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.