Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » ContainerShape without model representation
ContainerShape without model representation [message #1829397] Thu, 02 July 2020 16:56 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 546
Registered: November 2009
Senior Member
I am looking to create a Multi-Text rectangle that can accept other shapes, but addition of these shapes does not update underlying model of the text object - another words the containment is only at UI level, not the model. How can I achieve this behavior? Thank you.
Re: ContainerShape without model representation [message #1829419 is a reply to message #1829397] Fri, 03 July 2020 06:26 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1922
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Alex,

not sure if I understood that correctly. The hierarchy of the graphical representation in Graphiti and the hierarchy of the underlying model can be completely independent. You can have add or custom features that add the additional shape as child of the rectangle, but add the model object somewhere else. The association between model and graphics is then usually done by just linking the 2 objects.

HTH,
Michael
Previous Topic:Advice on ELK+Graphiti for incremental/dynamic views
Next Topic:AbstractDirectEditingFeature jumps to 0,0 coordinates on scroll change
Goto Forum:
  


Current Time: Tue Oct 20 09:59:58 GMT 2020

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

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

Back to the top