Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Compartment and LayoutManager
Compartment and LayoutManager [message #187550] Sat, 17 May 2008 12:54 Go to next message
Eclipse UserFriend
Originally posted by: florian.darkblue.de

Hi Everyone,

I have a simple-sounding problem, which is bothering me for days now. In
my .gmfgraph file I have a compartment and the fitting FigureDescriptor
for it. I added a rectangle shape for testing-purpose and below that I
added a simple FlowLayout. One should expect that every node added to the
compartment should be layouted in a flowting horizontal line. But it
doesn't. In fact it seems that the automatically generated code does not
even contain one call to the constructor of FlowLayout. I also tested
other LayoutManager without success. It seems, that nodes in a compartment
must be aligned in a different way - but I can't find out what way that
is. Does anyone of you happen to know?

Thank you in advance.

Florian
Re: Compartment and LayoutManager [message #187642 is a reply to message #187550] Mon, 19 May 2008 07:06 Go to previous message
Eclipse UserFriend
Hello Florian,

Generated code will use ResizableCompartmentFigure (or one of the subclasses)
to visualize compartment, so you can review corresponding generated code
to realize particular constraints you have to specify to layout child figures
or you can try to construct diagram node without compartments at all.

-----------------
Alex Shatalin
Previous Topic:Manage child of an element associated to connection
Next Topic:Shortcuts issue while initializing a diagram from model
Goto Forum:
  


Current Time: Tue Jul 22 03:31:10 EDT 2025

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

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

Back to the top