A layout in the the parent of top NodeReference [message #181579] |
Wed, 09 April 2008 06:15  |
Eclipse User |
|
|
|
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 #183905 is a reply to message #182200] |
Tue, 22 April 2008 11:20  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.07894 seconds