Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » How to interact with a PlatformGraphicsAlgorithm?
How to interact with a PlatformGraphicsAlgorithm? [message #1714240] Tue, 10 November 2015 23:37 Go to next message
Rafal Filipiuk is currently offline Rafal FilipiukFriend
Messages: 14
Registered: September 2015
Junior Member
Hi,

So my PlatformGraphicsAlgorithm (PGA) is backed up by a draw2d ScrollPane, so naturally I want to populate it with other Figures.

I'm currently implementing a move feature for the figure I want to move into the PGA/ScrollPane. But when I try referring to the GraphicsAlgorithm of the targetContainer (the PGA/ScrollPane), there seems to be no way to access its contents so I can update them and redraw the figure.

Is there any way to do this? How can I interact with a PGA once it's drawn?

Thanks again,

Raf
Re: How to interact with a PlatformGraphicsAlgorithm? [message #1714300 is a reply to message #1714240] Wed, 11 November 2015 14:42 Go to previous messageGo to next message
Rafal Filipiuk is currently offline Rafal FilipiukFriend
Messages: 14
Registered: September 2015
Junior Member
I should mention that the targetContainer's GraphicsAlgorithm (PlatformGraphicsAlgorithmImpl) has an 'id' that corresponds to the id defined in my RendererFactory. Is there any way to use that?
Re: How to interact with a PlatformGraphicsAlgorithm? [message #1714908 is a reply to message #1714300] Tue, 17 November 2015 16:03 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1894
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Rafal,

the associations between your PGAs and its visualization or children in the visualization is something you need to track yourself. Graphiti only knows about the outer shape and that it has a custom visualization. For our GEF mapping we also need to keep track of the association between shapes/GAs and the accoring edit parts/figures. We don't need to care about children since that is modeled on level of Graphiti objects, though.

Michael
Previous Topic:post redo/undo
Next Topic:Building and testing first build
Goto Forum:
  


Current Time: Sun Jul 22 18:42:05 GMT 2018

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

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

Back to the top