类 SimpleVirtualFlow.Features

java.lang.Object
io.github.palexdev.virtualizedfx.flow.simple.SimpleVirtualFlow.Features
封闭类:
SimpleVirtualFlow<T,C extends Cell<T>>

public class SimpleVirtualFlow.Features extends Object
Helper class to manage extra features of the VirtualFlow.
  • 方法详细资料

    • enableBounceEffect

      public void enableBounceEffect()
      Calls enableBounceEffect(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)
      Calls enableSmoothScrolling(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)
      Calls enableSmoothScrolling(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 speed
      trackPadAdjustment - 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