GraphViz 可以用于图形编辑 GUI 吗?

发布于 2024-09-01 03:18:10 字数 357 浏览 2 评论 0 原文

我正在创建一个应用程序,它允许开发人员通过从工具箱(将显示为小图形元素)中选择预定义的函数来创建程序流程图。换句话说,开发人员将从工具箱中选择一个或多个预定义的功能(图形元素)并拖放到主工作区域上。然后,应用程序将根据所选函数的流程,自动生成可编译的代码。

我查看了 GraphViz,但不确定它是否可以用于创建用于编辑图形元素的 GUI IDE。我正在寻找类似于 Microsoft Visio 的功能,用户可以在其中添加/删除/拖放/各种形状来创建图表。

GraphViz 适合这里吗?如果是,您能指导我一些示例来展示如何做到这一点吗?如果 GraphViz 无法使用,还有哪些其他可用的开源/免费组件?

我打算在.Net 中构建最终的应用程序。

I am creating an application which will allow a developer to create a program flow-chart by selecting pre-defined functions from a ToolBox (which will show up as small graphical elements). In other words, developer will select one or more pre-defined functions (graphical elements) from ToolBox and drag-drop on the main work area. The application will then, based on the flow of functions selected, will auto-generate ready-to-compile-code.

I looked a GraphViz, but am not sure whether it can be used to create a GUI IDE for editing graphical elements. I am looking for a functionality similart to Microsoft Visio, where users can add/remove/drag-drop/ various shapes to create a diagram.

Does GraphViz fit in here? If yes, can you direct me to some examples showing how to do it? If GraphViz cannot be used, what are the other open source/free components available?

I am intending to build the final application in .Net.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

御弟哥哥 2024-09-08 03:18:10

虽然 Graphviz可以用于这样的交互式图形环境,但我不确定它是否是最好的工具。我认为 Graphviz 的优势在于可以相当轻松地将各种形式的现有数据可视化为图形形式。

如果您打算在浏览器中使用 GUI,那么我建议使用 RaphaelJit。两者都是基于 javascript 的,并且更容易让您进行控制。如果您想让用户完全控制事物的布局方式,Raphael 是不错的选择(示例)。如果您想添加和删除节点,但让框架为您进行布局,那么 JIT 很好(示例)。

While Graphviz could be used for such an interactive graphing environment, I'm not sure it would be the best tool for it. The strength of Graphviz in my opinion is to fairly easily visualize various forms of existing data into graphical form.

If you plan to have your GUI in a browser, then I would recommend either Raphael or Jit. Both are javascript based and more readily give you control. Raphael is good if you want to give the user total control over how things are laid out (example). The JIT is good if you want to add and remove nodes, but have the framework do the layout for you (example).

亣腦蒛氧 2024-09-08 03:18:10

是的,graphviz 绝对可以用于此目的。它带有 cairo 绑定,可以轻松集成到 GUI 中。您还可以沿着 dottylefty 的路线进行更多简单的操作,这是 graphviz 附带的简单包装器。

Yes, graphviz is definitely usable for this. It comes with cairo bindings that allow easy integration in GUI's. You could also go more bare-bones along the lines of dotty or lefty, simple wrappers which come with graphviz.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文