Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef
Class MouseWheelZoomHandler

java.lang.Object
  extended by
org.eclipse.gef.MouseWheelZoomHandler
All Implemented Interfaces:
MouseWheelHandler

public final class MouseWheelZoomHandler
extends java.lang.Object
implements 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 inherited from class org.eclipse.gef. MouseWheelHandler
MouseWheelHandler.KeyGenerator
 
Field Summary
static  MouseWheelHandler SINGLETON
          The Singleton
 
Method Summary
 void handleMouseWheel (Event event, EditPartViewer viewer)
          Zooms the given viewer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final 
MouseWheelHandler SINGLETON
The Singleton

Method Detail

handleMouseWheel

public void handleMouseWheel(Event event,
                             
EditPartViewer viewer)
Zooms the given viewer.

Specified by:
handleMouseWheel in interface MouseWheelHandler
Parameters:
event - The SWT event that was generated as a result of the mouse-wheel scrolling
viewer - The originating viewer
See Also:
MouseWheelHandler.handleMouseWheel(Event, EditPartViewer)

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire