public class ScrollingSmoother
extends java.lang.Object
Allows to replace the default scrolling behavior by an animation effect.
Compatible with :
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.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getDuration() |
Get current effect duration (ms).
|
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.
|
public ScrollingSmoother(org.eclipse.swt.widgets.Scrollable c2, IMovement movement)
smoothControl(boolean)
.c2
- movement
- smoothControl(boolean)
public ScrollingSmoother(org.eclipse.swt.widgets.Scrollable c2, IMovement movement, int duration)
smoothControl(boolean)
.c2
- movement
- duration
- smoothControl(boolean)
public int getDuration()
public void setDuration(int duration)
duration
- public void setFPS(int fps)
fps
- public void smoothControl(boolean enable)
enable
- true or false.