Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » compartment's direction
compartment's direction [message #81391] Tue, 28 November 2006 12:41 Go to next message
Eclipse UserFriend
Originally posted by: pqueralt.yahoo.es

Hi everybody!

In the examples I've seen I've realised that it is possible to put
compartments in a node in a top-down way. I was wondering if it is possible
to put next compartments in a node in a right-left way. What I am trying to
do is something similar to the attached figure.

Please, I need some answer, by the moment I haven't got any in this news
group and I am in hurry.

Many thanks in adavance.

Pascual



Re: compartment's direction [message #81455 is a reply to message #81391] Tue, 28 November 2006 16:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi Pascual,

I am not a GMF expert, but maybe you can get what you need using some
rectangles and the proper layout managers ;-)

For instance, you can do something like this in your gmfgraph file:

- Rectangle MainRectangleFigure
- Border Layout
- Rectangle TopRectangleFigure
- BorderLayoutData -> Alignment: BEGINNING vertical: true
- BorderLayout
- Label nameFigure
- BorderLayoutData -> Alignment: CENTER vertical: false
- Rectangle CentralRectangleFigure
- BorderLayoutData -> Alignment: CENTER vertical: true
- BorderLayout
- Rectangle VerticalLeftRectangleFigure
- BorderLayoutData -> Alignment: BEGINNING vertical: false
- Rectangle VerticalCenterRectangleFigure
- BorderLayoutData -> Alignment: CENTER vertical: false
- Rectangle VerticalRightRectangleFigure
- BorderLayoutData -> Alignment: END vertical: false

I hope it helps ;-)

Cheers,

Cristina

"P" <pqueralt@yahoo.es> escribi
Re: compartment's direction [message #81907 is a reply to message #81455] Thu, 30 November 2006 08:14 Go to previous message
Eclipse UserFriend
Originally posted by: pqueralt.yahoo.es

Many thanks Cristina, but it didn't work. :-((

I've tried several combinations but if i put a border layout at the top
rectangle it didn't show anything.
I've reduced the figure to have another one simpler, like the one I
attached.
As you can see I want to put the green boxes in the same column, and the
blue boxes in a differente column. Both boxes are created through the same
path in the domain model, the only difference is that they correspond to
different properties in the last node.

Anyway, any idea else would be great. I am gonna try now to do something by
code, because It's getting very difficult to do it from the models.

Cheers.

Pascual


"Cristina" <Cristina.Vicente@upct.es> escribi
Previous Topic:How to add additional methods to "inner figure class" template in graphdef.codegen
Next Topic:RotatableLabel
Goto Forum:
  


Current Time: Sun Jul 13 18:17:22 EDT 2025

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

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

Back to the top