Enum Class的使用
io.github.palexdev.virtualizedfx.utils.ScrollUtils.ScrollDirection
-
io.github.palexdev.virtualizedfx.utils中ScrollUtils.ScrollDirection的使用
修饰符和类型方法说明static ScrollUtils.ScrollDirectionScrollUtils.determineScrollDirection(Orientation orientation, double delta) Determines the direction of the scroll from the given orientation and the given delta, usesScrollUtils.upOrDown(double)if orientation is VERTICAL orScrollUtils.leftOrRight(double)if orientation is HORIZONTAL.static ScrollUtils.ScrollDirectionScrollUtils.leftOrRight(double delta) If the given delta is lesser than 0 returns LEFT, otherwise returns RIGHT.static ScrollUtils.ScrollDirectionScrollUtils.upOrDown(double delta) If the given delta is lesser than 0 returns DOWN, otherwise returns UP.static ScrollUtils.ScrollDirectionReturns the enum constant of this class with the specified name.static ScrollUtils.ScrollDirection[]ScrollUtils.ScrollDirection.values()Returns an array containing the constants of this enum class, in the order they are declared.