Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Maintaining constant gap between compartment and component figure?
Maintaining constant gap between compartment and component figure? [message #196158] Wed, 09 July 2008 07:01 Go to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Hello,

I have a compartment figure inside the component figure. This compartment
figure fills completely component figure. I want this compartment figure
should maintain a constant gap between component figure in all cases like
resizing of the component. Please help me how can maintain constant gap in
between?.

Thanks In Advance,
Nagesh Y.J.
Re: Maintaining constant gap between compartment and component figure? [message #196235 is a reply to message #196158] Wed, 09 July 2008 09:39 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Nagesh,

You have to put compartment figure into the component one with corresponding
layout+layout constraints. For example, in .gmfgraph you can:
- create FigureDescriptor
- create "component" figure and specify "GridLayout" for it with propert
margin/spacing properties
- create a rectangle inside "component" figure, call it "compartmentContainer"
and specify proper GridData layout data for it
- create accessor for "compartmentContainer" figure in this figure descriptor
- use created figure descriptor as a figure for the node and as a figure
for the compartment using accessor to point to the actual compartment container
figure ("compartmentContainer")

-----------------
Alex Shatalin
Re: Maintaining constant gap between compartment and component figure? [message #196916 is a reply to message #196235] Mon, 14 July 2008 12:31 Go to previous messageGo to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Hello Shatalin,

I have one doubt,

> - create "component" figure and specify "GridLayout" for it with propert
> margin/spacing properties

Is this component figure is "figure ref" or "custom figure" or Normal
"Rectangle"?.

Thanks In Advance,
Nagesh
Re: Maintaining constant gap between compartment and component figure? [message #197229 is a reply to message #196916] Wed, 16 July 2008 09:17 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Nagesh,

> Is this component figure is "figure ref" or "custom figure" or Normal
> "Rectangle"?.
Try Rectangle.

-----------------
Alex Shatalin
Previous Topic:Annotations on Diagrams
Next Topic:Gmfmap figure components
Goto Forum:
  


Current Time: Thu Apr 25 13:05:22 GMT 2024

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

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

Back to the top