Moving symbols on diagram to another location and to different parent
To move a symbol on the diagram to another location and to a different parent, you can use the following method:
movePresentationElement(PresentationElement view, PresentationElement parent, Point location)
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:
movePresentationElements(List<PresentationElement> views, PresentationElement parent, Point location)
You can find the code examples in
<programinstallation directory>\openapi\examples\symbolmove
Related pages