| [news.eclipse.modeling.gmf] Re: Can I change compartment positions |
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@xxxxxxxxxxxxxxxxxxxxHi,
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