Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » A visual hierarchal layout for nodes
A visual hierarchal layout for nodes [message #220028] Wed, 25 February 2009 17:05
Eclipse UserFriend
Originally posted by: mbenamor.student.fundp.ac.be

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
Previous Topic:[Announce] GMF 2.2.0 I200902250554 is available
Next Topic:Undo / Redo for whole Commandstack
Goto Forum:
  


Current Time: Thu Apr 25 02:12:06 GMT 2024

Powered by FUDForum. Page generated in 0.03180 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top