|
Re: [GEF5] Hover Feedback parts and zoom [message #1785836 is a reply to message #1785009] |
Fri, 20 April 2018 12:07  |
|
Hi Kyle,
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.
h2h
Matthias
|
|
|
Powered by
FUDForum. Page generated in 0.02091 seconds