etomica.action
Interface Undoable

All Superinterfaces:
IAction
All Known Implementing Classes:
BoxInflate, BoxInflateDeformable

public interface Undoable
extends IAction

Interface for an action that can be "undone", such that its effect is reversed if the undo() method is invoked immediately after the actionPerformed().


Method Summary
 void undo()
          Causes the effect of most recent call to actionPerformed to be reversed.
 
Methods inherited from interface etomica.action.IAction
actionPerformed
 

Method Detail

undo

void undo()
Causes the effect of most recent call to actionPerformed to be reversed. Assumes that no changes have been made in the interim that might alter the ability of the undo to recover the state before actionPerformed.