Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
当然,您必须首先检查 JUNG 的许可政策。这可能已经限制了一些选择。 IIRC,许可证是Apcahe 2.0。
正如您提到的,绘图必须重新实现。为此,有几个选项:GWTCanvas、GWT 图形 和 g2d,可能还有其他我忘记的。
此外,要充分利用 GWT 方法,不能依赖太多的外部项目,这会增加一些难度。
基于所有这些,我会选择只使用其中的一些类并将它们一一移植到 GWT。也许从图形布局算法开始。
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 表示层那就太好了。我们一直采用的方法是使用 RaphaelGWT (RaphaelJS) 用于绘图,JUNG 用于服务器端布局。我们尝试将 JUNG 移植到客户端(所有内容都被翻译成 Javascript),但对并发库和 JRE 部分的依赖使得这不可行。
在服务器端,我们获取数据并使用节点和连接图创建我们自己的图形对象(GEGraph)。然后我们将所有这些放入 JUNG 图中并对其调用布局,检索每个节点的 x 和 y 坐标并将其放入 GEGraph 中。然后 GEGraph 被发送到客户端并由 Raphael 绘制。
Check out this similar question.
It would be very nice to have a GWT presentation layer for JUNG. The approach we've been taking is to use RaphaelGWT (wrapper for RaphaelJS) for drawing and JUNG for layout on the server side. We tried to port JUNG to the client side (where everything is translated into Javascript) but reliance on concurrent libraries and parts of the JRE made this unfeasible.
On the server side we grab the data and create our own graph object (GEGraph) with Node and Connection maps. Then we put all that into a JUNG graph and call layout on it, retrieving the x and y coordinates for each node and putting that in the GEGraph. The GEGraph is then sent to the client and drawn with Raphael.