Skip to main content



      Home
Home » Modeling » Graphiti » How to interact with a PlatformGraphicsAlgorithm?
How to interact with a PlatformGraphicsAlgorithm? [message #1714240] Tue, 10 November 2015 18:37 Go to next message
Eclipse UserFriend
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 09:42 Go to previous messageGo to next message
Eclipse UserFriend
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 11:03 Go to previous message
Eclipse UserFriend
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 Mar 16 22:58:48 EDT 2025

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

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

Back to the top