问题标签 [plantuml]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
750 浏览

uml - 活动图中的矩形对象节点

谁能告诉我如何在 PlantUml中设计 UML 的对象节点?根据UML 的 v2.5 规范(第 15.2.4 节)对象节点应该是方形的,而常规和最常用的动作节点是松鼠。

在此处输入图像描述

我在PlantUml 文档中可以找到的只是如何显示所有动作节点八角形......

我正在使用 PlantUml 的 v1 活动语法:

0 投票
1 回答
3081 浏览

uml - PlantUML 活动图 返回

我正在使用 PlantUML 创建活动图。

我希望出来的箭头而不是钻石Modify Details返回。OP2

我有这张图:

这给出了这个图像:

图形可视化图

0 投票
3 回答
12087 浏览

plantuml - 是否可以在 plantUML 中为 UML 项目使用自定义图像?

当您想要创建标准 UML 图时,PlantUML 非常强大。

但我目前正在考虑使用 PlantUML 来记录 EIP 路线(例如这些图像上的路线:https ://www.google.de/search?q=camel+route&safe=off&source=lnms&tbm=isch )。

如果您可以为类指定另一个图像而不是普通框,这将非常容易。类似于 Sparx Enterprise Architect 中的 SVG 或 WMF 图像或形状脚本。

我在文档中找到的唯一自定义图像中那些小精灵......

0 投票
1 回答
2364 浏览

groovy - 如何在 Java 或 Groovy 中使用 asciidoctorj-diagram?

PlantUML 是 Asciidoc 的一个很好的扩展,但我无法从我的 groovy 代码中弄清楚如何使用。

据我所知,该asciidoctorj-diaram模块应该是当前asciidoctorj-Release 的一部分,所以我想我不需要额外的依赖。但是我的代码可以很好地呈现 asciidoc,但不能呈现 PlantUML 图。它说:

知道有什么问题吗?我在网上找到的asciidoctorj-diagram例子都使用了 gradle-plugin :-|

0 投票
1 回答
908 浏览

uml - 如何在 UML 中添加类和数据库

我试图在 UML 中创建一个处理被调用的class被调用,并且我得到一个语法错误。这是我的 uml 代码:LocalStorageHandlerdatabaseLocalStorage

这是错误消息: 错误

0 投票
1 回答
507 浏览

xtext - 用于 PlantUML 的带有 XText 的 DSL

目前我正在尝试为 PlantUML 的类图创建 DSL。我是 Xtext 的新手,我无法理解几件事。在我列出我的问题之前,我向您展示我当前语法的一些部分:

我省略了其他关联类型(--*、--o、--|>),因为我以相同的方式定义了它们。

问题
1. 如果不与方法/属性名称分开,可见性枚举“#”就无法工作。但是所有其他情况(+,-,~)都很好,之间有和没有空格。
2. 在大多数情况下,这些关联似乎不起作用。我列举了几个例子:

  1. 我不知道如何对由 STRING 而不是 ID 定义的类使用交叉引用。

另外我猜方法名称的附加终端是一个奇怪的解决方案,应该以不同的方式处理。

0 投票
0 回答
10731 浏览

android - 如何让 Plantuml 为 Android Studio 中的现有项目渲染 uml?

我采取的步骤:

  1. 我已将 Plantuml 插件安装到 Windows 7 Pro PC 上的 Android Studio 1.5.1 中。
  2. 然后我安装了 Graphviz 并设置了它的点路径并创建了 Graphviz 环境变量。
  3. 我已经重新启动了一切。:) 以防万一。
  4. 我打开了一个小的 Android 项目。
  5. 我找到了 PlantUML 窗口并且可以打开它。

您如何生成(反向生成?)现有项目的 UML 图?甚至是特定的java文件?

0 投票
2 回答
13075 浏览

graphviz - PlantUML:控制箭头的形状和方向

使用PlantUML,我为我的文档创建了一个小状态图:

(顺便说一句:Pl​​antUML 是一个非常好的工具,可以从嵌入文本描述的嵌入式标记文档(如 asciidoc 或 reStructuredText)创建图形输出)

这是给定状态图呈现的内容: 在此处输入图像描述

如您所见,图表绘制得有点草率

  • “关机”过渡箭头不直
  • 初始/结束状态被交换
  • 从“Powered”到“Starting”的箭头看起来好像与“Power Off”过渡有关
  • “启动”和“运行”状态未对齐

正如文档描述的那样,您可以通过写作或简称而不是仅仅对箭头方向产生一些影响。-left->-l->-->

有没有办法影响箭头的绘制方式位置?我真的很想只画水平垂直的 直线

0 投票
1 回答
5176 浏览

plantuml - 如何在植物 uml 序列图中自动激活和销毁

在 PlantUML 中,在序列图中添加激活线可能非常麻烦。有没有办法让它在没有所有额外文本的情况下自动激活和停用?

例如

生成没有激活线的序列图

在此处输入图像描述

但是要添加激活线,它会变得非常混乱

在此处输入图像描述

我想知道是否有可能让它自动检测可能的创建销毁点

0 投票
2 回答
1527 浏览

uml - How to represent a compound graph using UML notations/diagrams?

I need a tool (preferably online, but at that stage I don't care anymore) which allows me to modelize relationships (similar to BPMN) which can be represented as compound graphs (though most of the times, it will be a simpler nested graph). I can't seem to achieve my goal using BPMN formalism (swimlanes are the closest but they do not allow arbitrary nesting). I am thinking to reuse UML modelization tools but I don't know enough about UML to know if UML covers my use case.

Imagine an integrated circuit which is made of chips connected with wires. So three chips : A,B,C and Chip A -> Chip B, Chip C. Each chip has input ports and output ports, and some of the output ports of A are connected to the input ports of B, some are connected to those of C. Now Chip A itself can be considered as an integrated circuit, and as such can be decomposed in another graph : Chip A :: Chip A.1, Chip A.3 -> Chip A.2. Each Chip A.1 can also be decomposed etc. This is what is called a compound graph. Each node of a compound graph can have children which are themselves graphs.

I do know about the Harel's and UML's statecharts formalism, which allows for hierarchical graphs to describe hierarchical nested state machines (hence any nested graph can potentially be expressed with statechart formalism), though I do not know any online tool which allow to draw statechart. The question is whether UML has a mechanism or tools which allow to specify a compound graph, and if so, what is the nesting mechanism?

Level 1

Zoom on Chip A

An example of compound graph from the litterature :

enter image description here