You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

To move a symbol on the diagram to another location, you can use the following method:

    PresentationElementManager.getInstance().movePresentationElement(PresentationElement view, Point location)
    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:

    movePresentationElements(List<PresentationElement> views, Point location)

 You can find the code examples in

  • <programinstallation directory>\openapi\examples\symbolmove
Related pages