Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 JGraphX 来实现“平移”功能。我已经使用了 graphcomponent.setPanning(true) 并且如果我按需要执行 Ctrl+Shift + 鼠标左键单击并拖动,则可以正常工作。
但我必须简化这个功能。说 Alt+鼠标左键单击应该启用平移。
更进一步,我想为用户提供一个按钮,以便在用户单击按钮时启用平移,当然使用鼠标和任何键盘组合键。用户点击同一个按钮退出平移模式。
非常感谢任何解决方案/方向。
谢谢
覆盖 mxGraphComponnet.isPanningEvent