java.lang.Object
io.github.palexdev.virtualizedfx.flow.simple.SimpleVirtualFlow.Features
- 封闭类:
- SimpleVirtualFlow<T,
C extends Cell<T>>
Helper class to manage extra features of the VirtualFlow.
-
方法概要
修饰符和类型方法说明voidCallsenableBounceEffect(double, double)with 5 and 40 values for strength and maxOverscroll respectively.voidenableBounceEffect(double strength, double maxOverscroll) Adds a bounce effect when the start or end of the flow is reached.voidenableSmoothScrolling(double speed) CallsenableSmoothScrolling(double, double, double)with 7 and 0.05 values for trackPadAdjustment and scrollThreshold as second and third parameters.voidenableSmoothScrolling(double speed, double trackpadAdjustment) CallsenableSmoothScrolling(double, double, double)with 0.05 value for scrollThreshold as third parameter.voidenableSmoothScrolling(double speed, double trackPadAdjustment, double scrollThreshold) Enables smooth scrolling for this VirtualFlow.
-
方法详细资料
-
enableBounceEffect
public void enableBounceEffect()CallsenableBounceEffect(double, double)with 5 and 40 values for strength and maxOverscroll respectively. -
enableBounceEffect
public void enableBounceEffect(double strength, double maxOverscroll) Adds a bounce effect when the start or end of the flow is reached. -
enableSmoothScrolling
public void enableSmoothScrolling(double speed) CallsenableSmoothScrolling(double, double, double)with 7 and 0.05 values for trackPadAdjustment and scrollThreshold as second and third parameters. -
enableSmoothScrolling
public void enableSmoothScrolling(double speed, double trackpadAdjustment) CallsenableSmoothScrolling(double, double, double)with 0.05 value for scrollThreshold as third parameter. -
enableSmoothScrolling
public void enableSmoothScrolling(double speed, double trackPadAdjustment, double scrollThreshold) Enables smooth scrolling for this VirtualFlow.- 参数:
speed- parameter to adjust the speedtrackPadAdjustment- parameter to adjust the scrolling with the trackpad (formula is '(speed / (trackPadAdjustment * 100))')scrollThreshold- computed values lesser than this threshold will stop the scroll, recommended values are lesser than 1, it's ignored if using a trackpad
-