Java FX中的鼠标滚动 [英] Mouse scrolling in Java FX

查看:60
本文介绍了Java FX中的鼠标滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用mouse scroll来使圆变大(mouse-scroll-up)而使圆变小(mouse-scroll-down).

I want to use mouse scroll to make circle bigger (mouse-scroll-up) and circle smaller (mouse-scroll-down).

我已经有了使用鼠标中键更改圆半径的现有代码,但是我的问题是:

I have existing code to change circle radius smaller already with mouse middle button, but my question would be:

如何使用鼠标向上滚动和鼠标向下滚动执行相同的操作?

How can I use mouse-scroll-up and mouse-scroll-down to do the same thing?

我已经用Google搜索过,可以用ScrollEvent某种方式完成,但是我对此不太了解.

I have googled, it could be done somehow with ScrollEvent, but I can't understand this very well.

推荐答案

回答您的问题

如何使用鼠标向上滚动和鼠标向下滚动执行相同的操作?

How can I use mouse-scroll-up and mouse-scroll-down to do the same thing?

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆