Java graph library for visualising flowchart-like diagrams

牧云@^-^@ 提交于 2019-12-21 17:56:10

问题


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?


回答1:


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.




回答2:


I like AT&T's graphviz a lot. I'm not sure that you'll agree, but it'd be worth considering.



来源:https://stackoverflow.com/questions/7843442/java-graph-library-for-visualising-flowchart-like-diagrams

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!