Eclipse plugin\Java Library to create flow diagrams
Asked Answered
L

4

6

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

sample diagram

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

Also the diagrams should be editable after generation.

Lafayette answered 27/4, 2017 at 9:56 Comment(4)
In Java there are no plugins. there are only librariesVenereal
updated the header. thanksLafayette
You want to generate this with code? Do you want to execute the flow afterwards was well or are you interested in the image only?Tahmosh
The requirement is something like i have an xml file with nodes and edges and using some library i read the xml and covert it into graphical image with is editable(can change node color based on certain selection)Lafayette
V
0

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:

A directed graph example

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

Vise answered 10/5, 2017 at 14:32 Comment(0)
S
0

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.

Scissor answered 8/5, 2017 at 14:38 Comment(0)
M
0

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.

Minister answered 9/5, 2017 at 22:34 Comment(0)
V
0

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:

A directed graph example

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

Vise answered 10/5, 2017 at 14:32 Comment(0)
U
0

I think this library might fit the bill...

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

Utopian answered 10/5, 2017 at 20:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.