I am evaluating mxGraph for a commercial application.

Is there a way to move vertexes and edges together? For example in the image below I would like to be able to move task 2 and have all symbols move as well.
alt text

If this is possible, can the layout manager respect this constraint?

asked 17 Oct '12, 15:26

Starukhin's gravatar image

accept rate: 0%

edited 17 Oct '12, 15:27

Not "the", but "a" layout manager can respect this. You'd need to implement it.


answered 19 Oct '12, 02:00

Lofi's gravatar image

accept rate: 37%

That doesn't really answer my first question. "Is there a way to move vertexes and edges together?" A code snippet to demonstrate this would really be helpful.

(19 Oct '12, 08:57) Starukhin

It's possible. If you want a layout to respect your changes, you would have to customise the layout to understand the context of what you're doing. The layout manager controls running automatic layouting, it only runs what layout(s) are available.

Most layouts have some isMovable flag that you could override and not allow cells that you've manually moved to be moved as part of the layout?

Which layout are you intending to use?


answered 28 Oct '12, 17:40

David's gravatar image

accept rate: 47%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 17 Oct '12, 15:26

Seen: 974 times

Last updated: 28 Oct '12, 17:40