Class ScrollingSmoother

java.lang.Object
org.eclipse.nebula.animation.ScrollingSmoother

public class ScrollingSmoother
extends java.lang.Object

Allows to 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) AnimationRunner animationRunner  
    (package private) org.eclipse.swt.widgets.Listener cancelEffectIfUserSelection  
    (package private) org.eclipse.swt.widgets.Scrollable component  
    (package private) int duration  
    (package private) org.eclipse.swt.widgets.ScrollBar horizontalScrollBar  
    (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)
    Create a Scrolling Smoother instance over a scrollable widget.
    ScrollingSmoother​(org.eclipse.swt.widgets.Scrollable c2, IMovement movement, int duration)
    Create a Scrolling Smoother instance over a scrollable widget.
  • Method Summary

    Modifier and Type Method Description
    int getDuration()
    Get current effect duration (ms).
    protected org.eclipse.swt.widgets.ScrollBar getScrollbar​(org.eclipse.swt.widgets.Event event)  
    void setDuration​(int duration)
    Set effect duration (ms).
    void setFPS​(int fps)
    Set the FPS (frame per second) to use with the animator.
    void smoothControl​(boolean enable)
    Enable or disable scrolling effect.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait