how to get moveable figures within compartments [message #216227] |
Fri, 23 January 2009 10:32 |
Robert Wloch Messages: 109 Registered: July 2009 |
Senior Member |
|
|
Hello everyone,
in my gmfgraph map I'm trying to design a compartment so that its figures
can be moved freely later by using and combining the default layouts.
It roughly looks like this in my gmfgraph:
Figure Descriptor "BoxFigure"
Rectangle "BoxRectangle"
Flow Layout false (default)
Label + child access
Rectangle "CompartmentElementRectangle" + child access
Figure Descriptor "ElementFigure"
Rectangle "ElementRectangle"
Label + child access
Node "Box"
Node "Element"
Default Size Facet [0,0]
Compartment "ElementCompartment"
Diagram Label "BoxName"
Diagram Label "ElementName"
The compartment mapping is trivial in gmfmap.
Attempt 1)
Using no layout in "CompartmentElementRectangle" results in:
- Element Node is filling the horizontal space, although its default size
is [0,0]
- The Element figure within the compartment is not resizeable nor moveable
- The compartment fills horizontally, but not vertivally
Attempt 2)
Using Border Layout in "BoxRectangle", BL Data BEGINNING (vertical) in the
Label and BLD FILL (vertical) in "CompartmentElementRectangle" results in:
- The compartment properly fills horizontally and vertically
- Element Node has default size [0,0], but it's filling the horizontal
space
- The Element figure is not resizeable nor moveable
Attempt 3)
Using Attempt 2) plus setting Stack or Flow Layout in
"CompartmentElementRectangle" results in:
- same as in Attempt 2)
Attempt 4)
Using Attempt 2) plus setting Border or XY Layout in
"CompartmentElementRectangle" results in:
- no compartment visible anymore
Attempt 5)
Using Attempt 2) plus setting Grid Layout in "CompartmentElementRectangle"
results in:
- Compartment visible but not filling horizontal and vertical space
- Element Node is resized to size where all of its content is still visible
- The Element figure is not resizeable nor moveable
Is there a way to get the Element figure displayed in their preferred size
as in Attempt 5), but have the compartment fill the horizontal and
vertical space AND be able to move the Element figures? I thought at least
XY Layout should make this possible, but unfortunatly using it makes the
compartment disappear.
IMO this is just too simple to touch generated code, or am I wrong? If so
(that I'm wrong) what would I have to do, to get my problem solved?
Thanks for any help!
Rob
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02565 seconds