|Re: [GEF5] Hover Feedback parts and zoom [message #1785836 is a reply to message #1785009]
||Fri, 20 April 2018 12:07
|| Matthias Wienand
Registered: March 2015
you need to place the popup visual in another layer than the contents, so that the popup is not scrolled/zoomed with the contents.
The InfiniteCanvas provides several JavaFX Parent visuals that can be used to place custom visualisations, e.g. scrollbar group (on top), overlay group, scrolled pane (this is where the contents are placed, too, but in a sub-layer thereof), and underlay group.
The underlayGroup is suitable for visuals that should lie behind the contents.
The overlayGroup is where you could place the popup.
Unfortunately, the GEF defaults do not place visuals in any other layer than the scrolled content layer of the InfiniteCanvas, i.e. you would probably want to extend the RootPart so that special PopupHandleParts are added to the overlay group instead.
Additionally, you will need to write code to keep the popup at the correct location within the overlay group.
If you have further questions, feel free to ask. Also, we can discuss code here that is giving you troubles.
Powered by FUDForum
. Page generated in 0.01881 seconds