public class MouseWheelSmoothScroll
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static MouseWheelSmoothScroll |
create() |
static MouseWheelSmoothScroll |
create(java.util.function.Supplier<java.lang.Boolean> isScrollEnabled) |
void |
processMouseWheelEvent(java.awt.event.MouseWheelEvent e,
java.util.function.Consumer<java.awt.event.MouseWheelEvent> alternative)
Handles mouse wheel event and adds animation with inertia.
|
public static MouseWheelSmoothScroll create()
public static MouseWheelSmoothScroll create(java.util.function.Supplier<java.lang.Boolean> isScrollEnabled)
public void processMouseWheelEvent(java.awt.event.MouseWheelEvent e, java.util.function.Consumer<java.awt.event.MouseWheelEvent> alternative)
e
- any mouse wheel eventalternative
- handle event alternative way, when cannot add animation.