在 Eclipse RCP 视图中绘制?
我需要在 rcp 视图中绘制一些圆圈和节点(根据它们的 (x,y) 坐标)。我认为 Zest 或我的应用程序不合适(节点可以移动,没有坐标......)我尽力使用 jung,但总是遇到问题......所以我决定使用 SWT“形状”来绘制它们。但是,当我画一个圆圈然后调整视图大小(出现一个新编辑器,因此视图较小)时,我错过了该圆圈(不出现)... 我真的需要您的帮助来了解哪种是完成我的申请的最佳方式?如果您在使用荣格时也遇到问题? 多谢
I need to draw some circles and nodes (according to their (x,y) coordinates) in an rcp view. I think Zest is not appropriate or my application (the nodes can be moved, no coordinates..) I did my best to use jung, but always got problems... so I decided to plot them using SWT "shapes". however, when I draw a circle and then resize the view (a new editor appears so the view is smaller) I miss the circle (doesn't appear)...
I really need you help to know which is the best way to do my application? and if you too got problems using jung?
thanks a lot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有很多很多方法可以实现这一点...
除了 ZEST 和 Jung 之外,还有 GMF 和 Graphitti,尽管这对于一个小项目来说可能被认为是过度杀伤力。
最后但并非最不重要的一点是,您拥有基于
Canvas
的 SWT(您也注意到了)。有关如何使用此功能的示例,请参阅 SWT Snippets - 特别是 在画布上画一个圆圈。
There are many, many ways to this...
Apart from ZEST and Jung, you also have GMF and Graphitti, though these both can be considered overkill for a small project.
Last, but not least, you have SWT - as you also note - based on a
Canvas
. For an example on how to use this see the SWT Snippets - specially paint a circle in a canvas.