|
Re: [GEF4] ZoomEvent listener [message #1699372 is a reply to message #1699355] |
Tue, 23 June 2015 18:45 |
|
There are actually three zoom events of relevance and they may simply be consumed by using our FXPinchSpreadGesture (you can see its usage within FXPinchSpreadTool). Please note that these zoom events are actually pinch/spread gesture events, so they are only created when you are working on a device that supports touch. You can simply test whether these events are actually raised on your system by trying out the https://wiki.eclipse.org/GEF/GEF4/FX/Examples#SwtToFXGestureConversionDemo.
Independent of the event handler problem, zoom may result not only result from pinch/spread gesture events but also from others (if you e.g. have an FXZoomOnScrollPolicy registered). To support your use case I would that recommend not to register a zoom event handler, but to rather bind a specialized FXChangeViewportPolicy, which will be notified about zoom changes (and is the right place to react to them as you describe).
|
|
|
|
Powered by
FUDForum. Page generated in 0.02586 seconds