我是GWT的新手,我从事一个涉及RPC和MySQL的项目。我想动态地绘制一个网络图,其中包括带有箭头的椭圆和线条。我正在考虑使用SmartGWT DrawOval和DrawLinePath。
1)仅将SmartGWT用于绘制形状和将GWT用于布局/小部件/RPC/等其他方面是否有意义?
2)我知道建议不要混合GWT和SmartGWT,所以我想知道是否可以安全地将绘图小部件与其他GWT组件混合使用。
( 3)是否有比SmartGWT更好的绘图选择?
谢谢。
发布于 2012-08-07 19:15:40
- 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.
https://stackoverflow.com/questions/11850829
复制相似问题