Package com.uppaal.model.core2.lsc
Class TranslationXCommand
java.lang.Object
com.uppaal.model.core2.AbstractCommand
com.uppaal.model.core2.AbstractTransaction
com.uppaal.model.core2.TranslationCommand
com.uppaal.model.core2.lsc.TranslationXCommand
- All Implemented Interfaces:
Command
public class TranslationXCommand extends TranslationCommand
Translates (in the geometrical meaning) a set of elements.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TranslationXCommand(CommandManager commandManager, ArrayList<Element> elements)
Constructor -
Method Summary
Modifier and Type Method Description void
move(int x)
Move elements by (x, 0).Methods inherited from class com.uppaal.model.core2.TranslationCommand
doCancel, doExecute, doUndo, getModifiedElement, move, moveElements
Methods inherited from class com.uppaal.model.core2.AbstractTransaction
cancel, commit, execute, undo
-
Constructor Details
-
TranslationXCommand
Constructor- Parameters:
commandManager
- - The command managerelements
- - The array list for the elements
-
-
Method Details
-
move
public void move(int x)Move elements by (x, 0). This method can be called repeatedly as long as the translation has not been committed. The elements are actually moved, so change events are propagated.
-