Package org.eclipse.gef
Class MouseWheelZoomHandler
java.lang.Object
org.eclipse.gef.MouseWheelZoomHandler
- All Implemented Interfaces:
MouseWheelHandler
A MouseWheelHandler that zooms the given viewer. Typically, this handler
should be registered on a viewer that supports zoom as follows:
graphicalViewer.setProperty(MouseWheelHandler.KeyGenerator.getKey(SWT.MOD1),
MouseWheelZoomHandler.SINGLETON);
- Since:
- 3.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.gef.MouseWheelHandler
MouseWheelHandler.KeyGenerator
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleMouseWheel
(Event event, EditPartViewer viewer) Zooms the given viewer.
-
Field Details
-
SINGLETON
The Singleton
-
-
Method Details
-
handleMouseWheel
Zooms the given viewer.- Specified by:
handleMouseWheel
in interfaceMouseWheelHandler
- Parameters:
event
- The SWT event that was generated as a result of the mouse-wheel scrollingviewer
- The originating viewer- See Also:
-