将JUNG港汇入GWT [英] port JUNG into GWT

查看:115
本文介绍了将JUNG港汇入GWT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个很好的java图形库 JUNG



我想知道是否有任何GWT图书馆能够完成JUNG的工作?我知道有一个商业化的Javascript图形库 mxGraph 。但是 mxGraph 非常昂贵,并且有一个非常严格的许可政策。



是否有人知道类似于mxGraph(JS)或JUNG(java)的任何GWT图形库?如果没有用于绘图的GWT库,
$ b

和JUNG一样,我非常希望将JUNG移植到GWT中。我正在考虑使用gwt-graphics库作为基础,并用更多的JUNG特性来扩展它。
将JUNG转换成GWT的好策略是什么?我应该将大部分JUNG java类重写为客户端GWT类吗?有没有办法在一些客户端GWT类中包装JUNG类?我想B / C JUNG使用java swing框架,移植将需要将大多数UI JUNG类(基于swing)迁移到基于GWT的小部件中。



任何想法或建议关于这个问题?



Best。

解决方案

首先检查JUNG的许可政策。这可能已经限制了一些选择。 IIRC,许可证是Apcahe 2.0。



正如你所提到的,绘图你必须重新执行。为此,有几个选项: GWTCanvas GWT Graphics g2d ,可能还有其他的我忘记了。

另外,为了充分利用GWT方法,不要依赖太多的外部项目,这会变得更加困难。

基于所有这些,我将仅使用一些类并将它们逐个移植到GWT中。也许从图布局算法开始。

there is a very good java graphing library JUNG

I wonder if there exists any GWT library that does what JUNG do ? i'm aware there exist a commercial Javascript graphing library mxGraph. But mxGraph is very expensive and have a very restrictive licensing policy.

does anyone knows of any GWT graphing library similar to mxGraph (JS) or JUNG( java)?

if there is no GWT library for graphing like JUNG, I'm keen on porting JUNG into GWT. I was thinking to use gwt-graphics library as a basis and extend it with more JUNG like features . what is a good strategy to port JUNG into GWT? should i rewrite most of JUNG java classes into client GWT classes? would there be a way to wrap JUNG classes inside some client side GWT classes ? I guess b/c JUNG uses the java swing framework ,the porting will require to migrate most UI JUNG classes (swing based) into GWT based widgets.

any Ideas or suggestions about this subject?

Best.

解决方案

Of course you have to first check the licensing policy for JUNG. That might already limit out some options. IIRC, the licence is Apcahe 2.0.

As you mentioned, drawing you must re-implement. For that there a few options: GWTCanvas, GWT Graphics and g2d, and probably others that I forgot.

Also, to take full benefit of the GWT approach must not rely on too many external projects, which makes a bit harder.

Based on all these, I would go for using only some of the classes and porting them to GWT one by one. Maybe starting from the graph layout algorithms.

这篇关于将JUNG港汇入GWT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆