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.
我看到可以在视图的工具栏中添加一个组合来缩放图形,但问题是它与 JFace 一起使用,我只想知道是否可以仅使用 SWT 使用此类热情( ZoomContributionViewItem )因为我使用的是 Graph 而不是 GraphViewer 。
我是 Zest 的初学者,我不太了解这两种方法(JFace 和 SWT with Zest)之间的区别,所以请你先告诉我是否可以使用图形而不是图形查看器进行缩放,然后是第二个向我解释这些方法之间的区别
非常感谢你的帮助
我找到了一个简单的解决方案
GraphViewer viewer = new GraphViewer(parent, SWT.NONE); Graph g = viewer.getGraphControl();
然后我继续正常使用图表而不使用查看器