[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] A visual hierarchal layout for nodes

Hi,

I am new to Eclipse GMF and started using to it to develop a graphical editor for a hierarchal model we developed.

We succeeded in generating the nodes along with the basic links but we are stuck at the layout definition. Before proceeding to radical solutions I wanted to make sure if there is a simple way to integrate a hierarchal layout for our nodes. To make things clearer, we want the end-user to manipulate a graphical tree of nodes:

A
-------------------^-------------------------------
| |


| |

E B

         -------^--------
         |              |
         |              |
         C              D

In our current implementation users can place nodes wherever they want (of course using the absolute XY layout) but we want to show clearly the hierarchal structure of the model. For instance if users will add a child node to C, it should be placed under C. Is there a way to impose such layout on nodes in order to preserve the hierarchal visual view or should we develop our own layout? One final question, how to force two rectilinear links to meet at the same end-point; for example the link from D to E and C to E must meet at the same point in E.

I appreciate your help and advices in advance.
--
Ben Amor