用于可视化类流程图的Java图形库 [英] Java graph library for visualising flowchart-like diagrams

查看:111
本文介绍了用于可视化类流程图的Java图形库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个绘制流程图的界面,如图(本质上是电路图),其中包含如下节点:$ b​​
$ b

  + ------- + 
in1 - > | | ---> out1
| |
in2 - > | |
| |
in3 - > | | ---> out2
+ ------- +

即每个盒子有几个输入边缘和几个输出边缘。为了视觉清晰,如果所有输入边缘都分组在一侧,并且所有输出边缘分组在另一侧,则更有意义。

界面将涉及用户将不同盒子的输入和输出连接在一起。



我试图找到一个Java库,它可以帮助我轻松创建这样一个接口,它也会有自动布局工具保持图表清洁。 http://www.jgraph.com/ http://jung.sourceforge.net/ 看起来像他们会做我所需要的大部分内容,但我不确定如何使节点看起来像上面的输入和输出结合在一起。例如,我看不出如何用JUNG做到这一点。



任何人都可以建议使用什么库,应该使用什么以及如何让节点看起来像以上?

解决方案

您可能还想考虑 yWorks - 它是面向Java应用程序绘图的产品系列。我刚开始评估他们的图编辑器,但没有太多经验。


I'm in the process of making an interface for drawing flow chart like diagrams (essentially circuit diagrams) that contain nodes that look like the following:

       +-------+
in1 -->|       |---> out1
       |       |
in2 -->|       |
       |       |
in3 -->|       |---> out2
       +-------+

i.e. each box has several input edges and several output edges. For visual clarity, it makes more sense if all the input edges are grouped on one side and all the output edges are grouped on the other.

The interface will involve the user connecting the input and outputs of different boxes together.

I'm trying to find a Java library that will help me build such an interface easily which will also have automatic layout tools for keeping the diagrams clean. http://www.jgraph.com/ and http://jung.sourceforge.net/ look like they'll do most of what I need but I'm not sure about making the nodes look like the above where inputs and outputs are clumped together. For example, I can't see how I could do this with JUNG.

Can anyone suggest what library and should use and what I can do to make nodes look like the above?

解决方案

You might also want to consider yWorks - it is product family for diagramming for Java applications.. I just started to evaluate their diagram editor, not much experience on it yet.

这篇关于用于可视化类流程图的Java图形库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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