|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.nebula.animation.ScrollingSmoother
public class ScrollingSmoother
Allows to replace the default scrolling behavior by an animation effect.
Compatible with :
| Constructor Summary | |
|---|---|
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 | |
|---|---|
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 |
| Constructor Detail |
|---|
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)| Method Detail |
|---|
public int getDuration()
public void setDuration(int duration)
duration - public void setFPS(int fps)
fps - protected org.eclipse.swt.widgets.ScrollBar getScrollbar(org.eclipse.swt.widgets.Event event)
public void smoothControl(boolean enable)
enable - true or false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||