Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » overlapping labels + figure size
overlapping labels + figure size [message #194623] Thu, 26 June 2008 03:47 Go to next message
Eclipse UserFriend
hi!

I'm facing the problem that my labels are overlapping my figures.
Especially my custom figures. The labels are usual labels defined in the
*.gmfgraph.

For my both custom figures (please see the affixed childs on this
screenshot: http://www.scribd.com/doc/3634377/overlapping-labels) I've
used StackLayout, as Alex has told me was used in the EclipseCon2008.

What is or where is the best place to assure that the labels do not
overlap any line of a figure?

Further the rectangle of an affixed child is always created with a size of
(40,40), although I've defined a minimum size of (100,50).

Maybe the code from the EclipseCon 2008 can help, but I don't know from
where to get it.
Any help or ideas?

Regards,
Amro
Re: overlapping labels + figure size [message #194700 is a reply to message #194623] Thu, 26 June 2008 07:26 Go to previous messageGo to next message
Eclipse UserFriend
Hello Amro Al-Akkad,

I think all diagram elements will be resized automatically to fully seat
inner labels. AFAICSee the problem in your case is labels with are correctly
places inside diagram node figure, but overlapping inner (custom?) figure
bounds. I think you can try adding some more figures (or layout constraints)
around these inner labels "eating" some space.

For example: if you know the border of custom figure will take up to 10 pixels
(triangle-shaped cavity of ReceiveInput) then you can move inner label 10
pixels to the right (using layout constraint or by placing additional invizible
rctangle having 10 pixels width there). Same with left-hand cavity.. So as
a result inner lable will be located in 10 pixels from left/right side of
the actual diagram node and will not cover custom figure border..

-----------------
Alex Shatalin
Re: overlapping labels + figure size [message #194811 is a reply to message #194700] Fri, 27 June 2008 08:27 Go to previous message
Eclipse UserFriend
hi Alex!

thanks for your reply!
Due to my own time constraints,
I've only tried out your suggestions for a little time.
However I found the "Insets" option.
If the label or the port's name respectively,
will not become too long it is absolutely fine.

Thanks mate!
Cheers,
Amro
Previous Topic:Compartment boundry
Next Topic:Refreshing model at runtime
Goto Forum:
  


Current Time: Fri Jul 04 14:31:31 EDT 2025

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

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

Back to the top