pl.edu.agh.cast.editor
Class ExtendedMouseWheelScrollHandler

java.lang.Object
  extended by pl.edu.agh.cast.editor.ExtendedMouseWheelScrollHandler
All Implemented Interfaces:
org.eclipse.gef.MouseWheelHandler

public final class ExtendedMouseWheelScrollHandler
extends Object
implements org.eclipse.gef.MouseWheelHandler

This class represents mouse wheel scroll handler which scroll editor horizontally.

Author:
AGH CAST Team

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.gef.MouseWheelHandler
org.eclipse.gef.MouseWheelHandler.KeyGenerator
 
Method Summary
static ExtendedMouseWheelScrollHandler getInstance()
          Returns signleton instance of this class.
 void handleMouseWheel(org.eclipse.swt.widgets.Event event, org.eclipse.gef.EditPartViewer viewer)
          Scrolls the given viewer horizontally.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ExtendedMouseWheelScrollHandler getInstance()
Returns signleton instance of this class.

Returns:
singleton instance

handleMouseWheel

public void handleMouseWheel(org.eclipse.swt.widgets.Event event,
                             org.eclipse.gef.EditPartViewer viewer)
Scrolls the given viewer horizontally.

Specified by:
handleMouseWheel in interface org.eclipse.gef.MouseWheelHandler
See Also:
MouseWheelHandler.handleMouseWheel(org.eclipse.swt.widgets.Event, org.eclipse.gef.EditPartViewer)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.