首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >smartgwt绘图

smartgwt绘图
EN

Stack Overflow用户
提问于 2012-08-07 17:09:20
回答 1查看 1.1K关注 0票数 2

我是GWT的新手,我从事一个涉及RPC和MySQL的项目。我想动态地绘制一个网络图,其中包括带有箭头的椭圆和线条。我正在考虑使用SmartGWT DrawOval和DrawLinePath。

1)仅将SmartGWT用于绘制形状和将GWT用于布局/小部件/RPC/等其他方面是否有意义?

2)我知道建议不要混合GWT和SmartGWT,所以我想知道是否可以安全地将绘图小部件与其他GWT组件混合使用。

( 3)是否有比SmartGWT更好的绘图选择?

谢谢。

EN

回答 1

Stack Overflow用户

发布于 2012-08-07 19:15:40

  1. 不,你的方法不是很好,因为你的第二个方法的答案。
  2. 不,这是不安全的,因为这是不推荐的。最好只对UI元素使用SmartGWT组件。但我怀疑你在这里有点困惑。只有UI元素不能混合。GWT的所有其他工具(即RPC机制)都可以并且实际上需要成为解决方案的一部分。
  3. 我认为有以下几种选择:
代码语言:javascript
复制
- Use SmartGWT UI elements for all your layers/widgets and of course use the drawing shapes you have identified to create your solution.
- Use GWT elements and use other drawing libraries to achieve your goals. Such can be: [gwt-connectors](http://code.google.com/p/gwt-connectors/), [raphaelgwt](http://code.google.com/p/raphaelgwt/), [lib-gwt-svg](http://code.google.com/p/lib-gwt-svg/), depending whether connectors or simple lines are enough for your specifications.
- Use SmartGWT UI elements and embed one of the above libraries to cover cases that the provided elements can't support. This can be tricky as the success of such marriage is not always guaranteed, but it can't be dismissed either. I had success, with such an approach, by using the lib-gwt-svg.

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11850829

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档