Package com.uppaal.model.core2.lsc
Class InsertAnchoredElementCommand
java.lang.Object
com.uppaal.model.core2.AbstractCommand
com.uppaal.model.core2.AbstractTransaction
com.uppaal.model.core2.InsertElementCommand
com.uppaal.model.core2.lsc.InsertAnchoredElementCommand
- All Implemented Interfaces:
Command
public class InsertAnchoredElementCommand extends InsertElementCommand
A transaction command for inserting elements. The transaction
supports optionally setting a position, repeatedly.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description InsertAnchoredElementCommand(InstanceLine anchor, AnchoredElement element)Constructor -
Method Summary
Modifier and Type Method Description protected voiddoCancel()protected voiddoUndo()voidsetAnchor(InstanceLine anchor)Set anchor into the elementvoidshowEditor(JFrame frame)Show the editorMethods inherited from class com.uppaal.model.core2.InsertElementCommand
doExecute, getElement, getModifiedElement, moveMethods inherited from class com.uppaal.model.core2.AbstractTransaction
cancel, commit, execute, undo
-
Constructor Details
-
InsertAnchoredElementCommand
Constructor- Parameters:
anchor- - The anchor valueelement- - The anchor element
-
-
Method Details
-
setAnchor
Set anchor into the element- Parameters:
anchor- - The new anchor
-
showEditor
Show the editor- Parameters:
frame- - The jFrame
-
doCancel
protected void doCancel()- Overrides:
doCancelin classInsertElementCommand
-
doUndo
protected void doUndo()- Overrides:
doUndoin classInsertElementCommand
-