70414070
MD2021xR1
3
Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
To move a symbol on the diagram to another location and to a different parent, you can use the following method:
Code Block | ||
---|---|---|
| ||
movePresentationElement(PresentationElement view, PresentationElement parent, Point location) |
Code Block | ||
---|---|---|
| ||
PresentationElement view = ...; SessionManager.getInstance().createSession("Move symbol"); PresentationElementsManager.getInstance().movePresentationElement(view, newParent, new Point(50, 50)); SessionManager.getInstance().closeSession(); |
Similarly, a group of symbols can be moved by using the following method:
Code Block | ||
---|---|---|
| ||
movePresentationElements(List<PresentationElement> views, PresentationElement parent, Point location) |
Info |
---|
You can find the code examples in
|