Questions tagged [plantuml]

Open-Source tool in Java to draw UML Diagrams

PlantUML is a Java component that allows to quickly generate

  • Sequence diagrams
  • Use case diagrams
  • Class diagrams
  • Activity diagrams
  • Component diagrams
  • State diagrams
  • Object diagrams

using a simple and intuitive language.

They can be generated in PNG or SVG format.
It is also possible to generate ASCII art diagrams (only for sequence diagrams).

409 questions
7
votes
1 answer

How to create parallel interactions in a sequence diagram using plantuml

Hi i want to make a uml diagram with some parallel interactions like this, using plant uml. But i don't know if it is possible to add the dotted lines between the 'threads'. What i have so far is the following. A is sending something that is picked…
Stephan Hogenboom
  • 1,543
  • 2
  • 17
  • 29
7
votes
3 answers

Plantuml class diagram with multiple children: Any way to bifurcate the arrow?

My attempt: Animal <|-- Cat Animal <|-- Dog Result: ┌────────┐ │ Animal │ └────────┘ Δ Δ │ │ ┌──┴──┐┌──┴──┐ │ Cat ││ Dog │ └─────┘└─────┘ That is not how a class diagram is supposed to look like. This is: ┌────────┐ │…
user2394284
  • 5,520
  • 4
  • 32
  • 38
7
votes
1 answer

plantuml component diagram - layout control

I'm trying to build an "hardware architecture" graph using plantuml component diagrams and I'm struggling with the layout. My graph is growing to be pretty complex and I'm noticing plantuml keeps on adding frames left to right, making the graph grow…
Federico Destefanis
  • 968
  • 1
  • 16
  • 27
7
votes
1 answer

How can a PlantUML document specify its diagram type?

As far as I can tell, PlantUML auto-detects the diagram type for a given document (sequence diagram, usecase diagram, class diagram, activity diagram, etc.). This seems to work reasonably well, but I sometimes find that while editing a diagram I…
jbyler
  • 7,200
  • 3
  • 34
  • 42
6
votes
1 answer

Inline comment in PlantUML

Is it possible to write an inline comment in the PlantUML (Markdown format)? For example, I would like to achieve the following result @startuml participant Alice as A participant Bob as B A -> B ' Here I would like to have my…
41 72 6c
  • 1,600
  • 5
  • 19
  • 30
6
votes
1 answer

Plantuml - Rearrangement of components and packages

I try to arrange the components and packages as shown on the first screenshot. Is there any chance to do it like this (Screenshot 1) Please find my current approach here (Screenshot 2) And uml script here: @startuml package "packageA" { …
HKC72
  • 502
  • 1
  • 8
  • 22
6
votes
1 answer

PlantUml: How to do a multiline display in opt condition for sequence diagram

Im trying to do a UML diagram for a script below in PlantUML. [plantuml, target=diagram-sequence, format=png] .... @startuml -> A: test opt ((Exterme_DANGER_Forwith_cIES_MICRO_GYRO) || (Exterme_DANGER_Forwith_cIES_PANASONIC_GYRO) ||…
Jackie
  • 61
  • 1
  • 4
6
votes
1 answer

use PlantUML diagram code in PHP/Phabricator

Looking for advice from developers phamiliar with PHP, or Phabricator internals, on how to make Phabricator to have PlantUML (text to UML diagrams) within wiki pages, tasks. So that this UML code snippet in GitHub/GitLab…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
6
votes
2 answers

plantuml background color for text blocks within note

I am trying set background color for specific blocks of multiline text within Plantuml sequence diagram "note". For example, in the below snippet for Plantuml Sequence diagram, how to apply a specific background color for part of the…
Kiran Mohan
  • 2,696
  • 6
  • 36
  • 62
6
votes
1 answer

PlantUml does not render diagram after build docfx

https://github.com/KevReed/DocFx.Plugins.PlantUml I had installed plantUml for docfx plugin via nuget. by nuget install DocFx.Plugins.PlantUml -ExcludeVersion -OutputDirectory . command, after that I got this result after build docfx, and I checked…
6
votes
4 answers

Reuse of sequence diagram parts

I have multiple single sequence diagrams. most of them have the same initialization and termination sequence. It is possible to copy this from one file to the other but it would be much better if this part could be declared at a single point. So in…
Peter
  • 1,629
  • 2
  • 25
  • 45
6
votes
3 answers

How to end a participant's line in PlantUML sequence diagram

Is there a way to end a participant's line in a sequence diagram before the end of the diagram? For example if I want to display how database stored procedures call each other: @startuml participant SP0 SP0 -> SP0 : Do minor stuff create participant…
Lauri Peltonen
  • 1,432
  • 15
  • 29
6
votes
2 answers

PlantUML: control arrow shape and direction

With PlantUML I've created a little state chart for my documentation: @startuml state Powered { [*] -d-> Starting Powered -r-> Starting : Some error Starting -d-> Operational } [*] -d-> Powered : Power On Powered…
frans
  • 8,868
  • 11
  • 58
  • 132
5
votes
2 answers

How to make PlantUML left/right/up/down arrow longer

The syntax for switching the directionality of the arrows in PlantUML is clear. One can use an -left->, -right->, -up->, -down-> to achieve left, right, up, and down directionality respectively. The documentation is equally clear that increasing the…
Shadow43375
  • 514
  • 7
  • 20
5
votes
1 answer

How to rearrange blocks in a UML state diagram

I just created a state diagram and right now I am struggling with the positions of the blocks. My goal is to have States 1,2,4,5 in a "down"-row and state 3 at the right from state 1. See my UML code and the attached screenshot for the current…
HKC72
  • 502
  • 1
  • 8
  • 22
1 2
3
27 28