Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Nesting diagrams(Nested graphiti diagrams)
Nesting diagrams [message #924193] Wed, 26 September 2012 15:48 Go to next message
Iain Whiteside is currently offline Iain WhitesideFriend
Messages: 2
Registered: September 2012
Junior Member
Hi,

I'm wanting to create graphiti diagrams with nested nodes (sub-graphs contained in nodes). I know this is possible because there is something similar on the project homepage: http://www.eclipse.org/graphiti/

Are there any case studies or examples out there that I could look at for inspiration? Or any documentation on the principles?

Thanks!
Re: Nesting diagrams [message #924787 is a reply to message #924193] Thu, 27 September 2012 05:57 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Iain,

the diagrams shown on the page use simple nesting of container shapes with
rectangles as GAs; they again contain other shapes/container shapes.

I understood your question so that you wanted to nest a diagram inside
another one. That's not possible, although the pictograms model used by
Graphiti would principially allow such things. Instead the nesting should be
done on container shape level.

HTH,
Michael
Re: Nesting diagrams [message #938457 is a reply to message #924787] Tue, 09 October 2012 22:29 Go to previous messageGo to next message
Iain Whiteside is currently offline Iain WhitesideFriend
Messages: 2
Registered: September 2012
Junior Member
Hi, thanks for this. I have been able to place container shapes inside others at the 'diagram level'. By this I mean that by dragging from the palette to inside a parent (and the parent flashes red) I have achieved nesting.

I can't figure out how to do this programmatically, though. Can you give an instance of (or reference to) some code that will contain one shape inside another *if they both already exist*?

Thanks!
Re: Nesting diagrams [message #940208 is a reply to message #938457] Thu, 11 October 2012 12:13 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
You can simply change the parent of the future inner shape to the desired
parent, that should be all (besides some layout and domain adaptations of
course).

Michael
Previous Topic:ImageIcon
Next Topic:refreshEditPartsForModelChildrenAndSourceConnections ?
Goto Forum:
  


Current Time: Tue Apr 23 13:10:42 GMT 2024

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

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

Back to the top