[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Can I change compartment positions

Hi, thanks a lot that it works.
But it seems that when I add any layout(for example FlowLayout) to comp1/comp2, I couldn't add any child into it in generated application. I need comp1 and comp2 both use flowlayout other than list layout or xylayout.
I use GMF1.0 release, does it matter?


Michael Golubev wrote:

Hi,

1. In the gmfgraph model define 3 rectangles Root, Comp1 and Comp2.
2. Layout Comp1 and Comp2 inside Root using gmf layouts (e.g, set BorderLayout for root, BorderLayoutData(beginning, not vertical) for Comp1 and BorderLayoutData(end, not vertical) for Comp2). Feel free to insert any auxiliary figures between Root and Comp's to adjust layout. Ensure that Comp1 and Comp2 both are children (probably deep children) of Root.
3. Define Diagram Node to reference Root rectangle, and 2 Diagram Compartments to reference Comp1 and Comp2.

Regards,
Michael


"Hao Zhang" <bjzhanghao@xxxxxxxx> wrote in message news:ecf83a$nju$1@xxxxxxxxxxxxxxxxxxxx
Hi,
I have 2 compartments in a figure, normally they should layout vertically, now I wish to layout them horizontally.
Can I realize this through modeling or I have to modify codes directly?


ZhangHao