70414069
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, you can use the following method:
Code Block | ||
---|---|---|
| ||
PresentationElementManager.getInstance().movePresentationElement(PresentationElement view, Point location) |
Code Block | ||
---|---|---|
| ||
PresentationElement view = ...; SessionsManager.getInstance().createSession("Move symbol"); PresentationsElementsManager.getInstance().movePresentationElement(view, new Point(50, 50)); SessionsManager.getInstance().closeSession(); |
Similarly, a group of symbols can be moved by using the following method:
Code Block | ||
---|---|---|
| ||
movePresentationElements(List<PresentationElement> views, Point location) |
Info |
---|
You can find the code examples in
|