简体   繁体   中英

Eclipse plugin\Java Library to create flow diagrams

I need to create flow diagrams based on specific inputs, using java code, what are best ways\\plugins to achieve this.

样本图

something like the above diagram (For sample only it is taken from google images)

Also the diagrams should be editable after generation.

Maybe something like https://github.com/jgraph/draw.io can solve your Problem. It is the sourcecode for https://www.draw.io/ which is a graphical Editor for creating diagrams.

So you can create an XML-File and upload it to your own version of draw.io and create the flowchart. Then you can edit it and save it to varoious file formats.

This is not the perfect answer, but maybe it is worth a try.

From the doc of JDiagram:

MindFusion.Diagramming for Java Swing (JDiagram for short) is a Java class library that that lets you create and display various types of diagrams and charts. The library includes model classes that describe the structure and appearance of a flow diagram, and view classes that can be integrated into any application that targets the Java Swing framework

here are the examples, of what you can achieve with the library:

http://www.mindfusion.eu/onlinehelp/jdiagram/

There you could browse the tutorials and the doc.

I would recommend Graphviz - the industry standard for graphs. It also has Java API (as well as perl, python, ruby etc.), so it possible to use it in Eclipse.

It uses DOT - a plain text graph description language. Small example:

 digraph graphname {
     a -> b -> c;
     b -> d;
 }

And the resulting graph:

有向图示例

Graphviz provides everything you need to create any kind of graphs. And yes, diagrams are editable.

Graphviz Eclipse plug-in: https://github.com/abstratt/eclipsegraphviz

I think this library might fit the bill...

https://eclipse.org/modeling/mdt/?project=xsd#xsd

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM