如何在同一个Jslider上添加两个指针?
截至目前,我在同一面板/框架中有两个不同的 Jslider。一要求X值。我意识到,如果我可以为这两个值使用一个滑块,但在同一滑块上有两个指针,那么对于用户来说,这将更具交互性。为了区分指针,最好对 X 指针进行颜色编码,对 Y 指针使用不同的颜色。
关于再添加一个指针有什么建议吗?
As of now, I have two different Jsliders in the same panel/frame. One ask for X value. and other for Y. I realize if I can have ONE slider for both the values but two pointers on same slider, it would be more interactive for the user. To distinguish the pointers from each other, it would be nice to color code the pointer just for X and different color for the Y pointer.
Any suggestions on adding one more pointer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当用户想要选择相同的 X/Y 值并且指针彼此重叠时会发生什么?如果您想重新调整底部指针,是否必须先移动顶部指针,然后再移动底部指针?
我建议您坚持使用简单的方法并使用两个滑块。这是用户熟悉的 UI。
And what happens when the user wants to choose the same X/Y value and the pointers are painted on top of one another? What if you want to readjust the bottom pointer, are you going to have to move the top pointer first before moving the bottom pointer?
I suggest you stick with the simple approach and use two sliders. This is a UI users are familiar with.