Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » is it possible to attach two shapes together without edge?
is it possible to attach two shapes together without edge? [message #1849284] Tue, 11 January 2022 11:32 Go to next message
fang yan is currently offline fang yanFriend
Messages: 23
Registered: October 2020
Junior Member
Hi,

I am wondering if I could set two shapes, say a box and a diamond together without any edge in between?
Something like in the attachment.

I tried width, height, defaultdist, etc. nothing worked
Thanks
Fang
Re: is it possible to attach two shapes together without edge? [message #1849297 is a reply to message #1849284] Wed, 12 January 2022 06:58 Go to previous messageGo to next message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 146
Registered: February 2016
Senior Member
Hello Fang,

For that purpose, you can use e.g. the nodesep attribute, see the attached screenshot.

Hope that helps,
Tamás
Re: is it possible to attach two shapes together without edge? [message #1849299 is a reply to message #1849284] Wed, 12 January 2022 07:36 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
You will have to use polygon shape.
Re: is it possible to attach two shapes together without edge? [message #1849341 is a reply to message #1849297] Thu, 13 January 2022 09:06 Go to previous messageGo to next message
fang yan is currently offline fang yanFriend
Messages: 23
Registered: October 2020
Junior Member
HiTamás,

Thanks for the advice.
I've tried nodesep.
I need some shapes separated with gap and some without(for example in attachment 1), but nodesep will stick everything together.
I tried using "subgraph" (as seen in attachment 2), it didn't work either.

Do you have any better solutions for this?

Many thanks
Fang
  • Attachment: expected.png
    (Size: 3.52KB, Downloaded 34 times)
  • Attachment: result.png
    (Size: 19.33KB, Downloaded 34 times)
Re: is it possible to attach two shapes together without edge? [message #1849342 is a reply to message #1849299] Thu, 13 January 2022 09:08 Go to previous message
fang yan is currently offline fang yanFriend
Messages: 23
Registered: October 2020
Junior Member
Hi Alexander,

Thanks for the help.
Could you elaborate a bit more how to set the parameters for the polygon to make this kind of shape?
I've got no clue.

Many thanks
Fang
Previous Topic:Circle shape is shown as oval, anyone encountered this?
Next Topic:how to save and import the png within GEF?
Goto Forum:
  


Current Time: Thu Oct 06 07:28:37 GMT 2022

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

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

Back to the top