Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » A layout in the the parent of top NodeReference
A layout in the the parent of top NodeReference [message #181579] Wed, 09 April 2008 10:15 Go to next message
Eclipse UserFriend
Originally posted by: aritz.galdos.iese.fraunhofer.de

Hello everybody!!

My question is simple but I don't know how would be the answer :).

I have a diagram and I put some rectangles on the diagram. I want to have
all my rectangles horizontaly, all in the same level. The diagram is a class
that contains all the nodes that I create. To mantain this horizontality, I
guess that I have to add a kind of layout to my diagram, but I don't know
how to do it, because the diagram is the "container" of all the rectangles.

I have a node for rectangles, but I don't need a node for the diagram. Can
somebody help me? I hope that the explanation is clear.

Thank you in advance and sorry because of my poor English.

Aritz
Re: A layout in the the parent of top NodeReference [message #182158 is a reply to message #181579] Thu, 10 April 2008 12:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aritz.galdos.iese.fraunhofer.de

Hello everybody again!!

I wrote yesterday but nobody has answer my request. Can anybody help me
pleas? Is my question clear? I want to order my nodes (top nodeReference)
only horizontally. For that, should I add a layout to the parent of the top
node? Is it possible? Is any other option?

It would be greatful if somebody could help me. Thank you in advance and I
am sorry because of my poor English.

Aritz



"Aritz" <aritz.galdos@iese.fraunhofer.de> wrote in message
news:fti4vn$hlf$1@build.eclipse.org...
> Hello everybody!!
>
> My question is simple but I don't know how would be the answer :).
>
> I have a diagram and I put some rectangles on the diagram. I want to have
> all my rectangles horizontaly, all in the same level. The diagram is a
> class that contains all the nodes that I create. To mantain this
> horizontality, I guess that I have to add a kind of layout to my diagram,
> but I don't know how to do it, because the diagram is the "container" of
> all the rectangles.
>
> I have a node for rectangles, but I don't need a node for the diagram. Can
> somebody help me? I hope that the explanation is clear.
>
> Thank you in advance and sorry because of my poor English.
>
> Aritz
>
Re: A layout in the the parent of top NodeReference [message #182200 is a reply to message #182158] Thu, 10 April 2008 12:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Aritz wrote:
> Hello everybody again!!
>
> I wrote yesterday but nobody has answer my request.

This happens a lot I'm afraid :/

Can anybody help me
> pleas? Is my question clear? I want to order my nodes (top nodeReference)
> only horizontally.

Well, maybe I have an idea. Let me see if I understand you correctly:
You wish that when a user adds a new node (rectangle) to the diagram,
that this new node is placed horizontally with the other nodes in the
diagram?

One simple solution that the user simply selects the nodes and aligns
them horizontally via the generated menuoptions.

Another option is to go into the nodes ItemSemanticEditPolicy and
override the getCreateCommand method (or maybe the CreateCommand for the
node).


Hope this point you in the right direction,

Tomas
Re: A layout in the the parent of top NodeReference [message #183905 is a reply to message #182200] Tue, 22 April 2008 15:20 Go to previous message
Eclipse UserFriend
Originally posted by: aritz.galdos.iese.fraunhofer.de

Hello!!

Is not any other simpler way? I mean, is not any option during the creation
of the GMF project's files an attribute (or an option...) where I can say
that I wnat to have my nodes only horizontaly? Or is not any way of adding a
one of the different layouts and say that all nodes must be only horizontal
(or all of them in y = 50 and x = *, for example).

Because overriding is always more complicated and in this case I don't know
from where I can start.

Any help is welcome!!!

Aritz

P.D: Thank you in advance and I am sorry because of my poor English!!





"Tomas Zijdemans" <trommas@yahoo.com> wrote in message
news:ftl11p$j61$1@build.eclipse.org...
> Aritz wrote:
>> Hello everybody again!!
>>
>> I wrote yesterday but nobody has answer my request.
>
> This happens a lot I'm afraid :/
>
> Can anybody help me
>> pleas? Is my question clear? I want to order my nodes (top nodeReference)
>> only horizontally.
>
> Well, maybe I have an idea. Let me see if I understand you correctly:
> You wish that when a user adds a new node (rectangle) to the diagram, that
> this new node is placed horizontally with the other nodes in the diagram?
>
> One simple solution that the user simply selects the nodes and aligns them
> horizontally via the generated menuoptions.
>
> Another option is to go into the nodes ItemSemanticEditPolicy and override
> the getCreateCommand method (or maybe the CreateCommand for the node).
>
>
> Hope this point you in the right direction,
>
> Tomas
>
Previous Topic:Problem with deleting multiple elements (with attached files)
Next Topic:How can I locate an element in a position by default?
Goto Forum:
  


Current Time: Fri Apr 26 15:43:28 GMT 2024

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

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

Back to the top