简体   繁体   English

Eclipse插件\\ Java库创建流程图

[英]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. 我需要基于特定输入创建流程图,使用java代码,实现此目的的最佳方式\\插件。

样本图

something like the above diagram (For sample only it is taken from google images) 类似于上图(仅适用于样本,取自Google图片)

Also the diagrams should be editable after generation. 图表也应该在生成后可编辑。

Maybe something like https://github.com/jgraph/draw.io can solve your Problem. 也许像https://github.com/jgraph/draw.io这样的东西可以解决你的问题。 It is the sourcecode for https://www.draw.io/ which is a graphical Editor for creating diagrams. 它是https://www.draw.io/的源代码,它是用于创建图表的图形编辑器。

So you can create an XML-File and upload it to your own version of draw.io and create the flowchart. 因此,您可以创建XML文件并将其上载到您自己的draw.io版本并创建流程图。 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: 来自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. 用于Java Swing的MindFusion.Diagramming(简称JDiagram)是一个Java类库,它允许您创建和显示各种类型的图表和图表。 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 该库包括描述流程图的结构和外观的模型类,以及可以集成到任何面向Java Swing框架的应用程序中的类。

here are the examples, of what you can achieve with the library: 以下是您可以使用库实现的示例:

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

There you could browse the tutorials and the doc. 在那里,您可以浏览教程和文档。

I would recommend Graphviz - the industry standard for graphs. 我建议使用Graphviz - 图表的行业标准。 It also has Java API (as well as perl, python, ruby etc.), so it possible to use it in Eclipse. 它还有Java API(以及perl,python,ruby等),因此可以在Eclipse中使用它。

It uses DOT - a plain text graph description language. 它使用DOT - 纯文本图形描述语言。 Small example: 小例子:

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

And the resulting graph: 结果图:

有向图示例

Graphviz provides everything you need to create any kind of graphs. Graphviz提供了创建任何类型图表所需的一切。 And yes, diagrams are editable. 是的,图表是可编辑的。

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

I think this library might fit the bill... 我认为这个图书馆可能适合这个法案......

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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