Package org.eclipse.nebula.cwt.animation
Class ScrollingSmoother
java.lang.Object
org.eclipse.nebula.cwt.animation.ScrollingSmoother
public class ScrollingSmoother
extends java.lang.Object
This class replace the default scrolling behavior by an animation effect.
Compatible with :
- Shell
- StyledText
- Canvas
- Gallery
-
Field Summary
Fields Modifier and Type Field Description (package private) org.eclipse.swt.events.SelectionListener
cancelEffectIfUserSelection
(package private) org.eclipse.swt.widgets.Scrollable
component
(package private) org.eclipse.swt.widgets.ScrollBar
horizontalScrollBar
(package private) MoveScrollBar
me
(package private) org.eclipse.swt.widgets.Listener
mouseWheelListener
(package private) IMovement
movement
(package private) org.eclipse.swt.widgets.ScrollBar
verticalScrollBar
-
Constructor Summary
Constructors Constructor Description ScrollingSmoother(org.eclipse.swt.widgets.Scrollable c2, IMovement movement)
-
Method Summary
Modifier and Type Method Description protected org.eclipse.swt.widgets.ScrollBar
getScrollbar(org.eclipse.swt.widgets.Event event)
void
smoothControl(boolean enable)
Enable or disable scrolling efeect.protected void
startEffect(MoveScrollBar moveScrollBarEffect)
-
Field Details
-
component
org.eclipse.swt.widgets.Scrollable component -
verticalScrollBar
org.eclipse.swt.widgets.ScrollBar verticalScrollBar -
horizontalScrollBar
org.eclipse.swt.widgets.ScrollBar horizontalScrollBar -
me
-
movement
IMovement movement -
mouseWheelListener
org.eclipse.swt.widgets.Listener mouseWheelListener -
cancelEffectIfUserSelection
org.eclipse.swt.events.SelectionListener cancelEffectIfUserSelection
-
-
Constructor Details
-
ScrollingSmoother
- Parameters:
c2
-movement
-
-
-
Method Details
-
getScrollbar
protected org.eclipse.swt.widgets.ScrollBar getScrollbar(org.eclipse.swt.widgets.Event event) -
smoothControl
public void smoothControl(boolean enable)Enable or disable scrolling efeect.- Parameters:
enable
- true or false.
-
startEffect
-