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 SummaryConstructors Constructor Description InsertAnchoredElementCommand(InstanceLine anchor, AnchoredElement element)Constructor
- 
Method SummaryModifier 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.InsertElementCommanddoExecute, getElement, getModifiedElement, moveMethods inherited from class com.uppaal.model.core2.AbstractTransactioncancel, commit, execute, undo
- 
Constructor Details- 
InsertAnchoredElementCommandConstructor- Parameters:
- anchor- - The anchor value
- element- - The anchor element
 
 
- 
- 
Method Details- 
setAnchorSet anchor into the element- Parameters:
- anchor- - The new anchor
 
- 
showEditorShow the editor- Parameters:
- frame- - The jFrame
 
- 
doCancelprotected void doCancel()- Overrides:
- doCancelin class- InsertElementCommand
 
- 
doUndoprotected void doUndo()- Overrides:
- doUndoin class- InsertElementCommand
 
 
-