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
84
votes
2 answers

PlantUml define relative position of components

I'm actually trying to generate a component diagram with PlantUml. Is it possible to define the relative position of the different components? What I want to define is: ComponentB is left from ComponentA. ComponentC is below ComponentA, ...
Moerwald
  • 10,448
  • 9
  • 43
  • 83
54
votes
7 answers

Can't render component diagram with PlantUML in IntelliJ

I am trying to create a component diagram using the PlantUML plugin for IntelliJ. I have installed the plugin and worked with it before. However, when I try to render a component diagram, I get an error: Cannot find Graphviz I've also checked…
Yedidya kfir
  • 1,419
  • 3
  • 17
  • 32
52
votes
5 answers

How to correct PlantUML Line Path

I created this diagram using the following code. But as you can see, the lines going from (Cancel Order) and (Place Order) to (Publisher) decide to take a terribly rounded path to get their, instead of going straight to the right and then down to…
aSamWow
  • 861
  • 1
  • 7
  • 9
47
votes
6 answers

How to align blocks in PlantUML class diagrams?

I am using PlantUML to make simple class diagrams and the tool is awesome, but I couldn't find any way to align classes with each other except putting them into packages or using relationships like Alice -left-* Bob. What I need is something…
Yuriy Kulikov
  • 2,059
  • 1
  • 16
  • 29
45
votes
5 answers

How to generate a legend with colors in PlantUML?

I want to color classes in my class diagram, based on a certain criteria, and then display a legend, that would look roughly like: If I could add an HTML table within PlantUML's legend and endlegend, I could achieve this by changing the cell…
Masked Man
  • 1
  • 7
  • 40
  • 80
38
votes
1 answer

PlantUML different layouts

I am using PlantUML API to generate Activity Diagram. I have used GraphViz before and used rank parameter to define layout rank=LR [for left to right] I am trying to find similiar thing in PlantUML where I can change its orientation to "Left to…
Makky
  • 17,117
  • 17
  • 63
  • 86
25
votes
6 answers

how to use the plantUML preview in VSCode?

I am trying to use plantuml add-ons on VSCode: there are several but none of them is working. In this eample I am using the plantUML add-on. As you can see on the second image the preview is blank. Can you help me ?
Yannick Pezeu
  • 530
  • 1
  • 7
  • 12
25
votes
0 answers

avoid overlapping arrows in plantuml class diagrams

I am using plantuml for creating the class diagrams along with arrows and messages on the arrows. It works perfect untill the diagram is huge. In large diagrams where there are multiple arrows and multiple classes, the arrows gets overlapped with…
Nikhil
  • 849
  • 8
  • 10
23
votes
3 answers

PlantUML extension for Visual Studio Code on Windows only working with sequence diagrams

I installed the PlantUML extension (by jebbs) in Visual Studio Code for Windows and everything is working perfectly for sequence diagrams. However when I try to render a class diagram I get the message: Dot Executable: \opt\local\bin\dot File…
Claire Furney
  • 2,115
  • 3
  • 24
  • 36
22
votes
1 answer

PlantUml - Set max width without constraining height

I have a plantUml diagram that looks like this: The image has a width of 1234px and a height of 970px. I need to print the image as part of a report and would like to fit it on a letter sized sheet of paper in portrait orientation. If I could…
sixtyfootersdude
  • 25,859
  • 43
  • 145
  • 213
19
votes
3 answers

Is it possible to use custom images for UML items in plantUML?

PlantUML is very powerful when you would like to create standard UML diagrams. But I currently think about using PlantUML to document EIP routes (like the routes on these images:…
rdmueller
  • 10,742
  • 10
  • 69
  • 126
17
votes
2 answers

How to make multiple sequence diagrams in single page

I wonder if there is any way to make a plantuml two sequence diagram in single page side by side. I want to keep the same actor names in both diagram. Currently if I do something like below, it automatically combined into single sequence…
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
17
votes
2 answers

How to create nested box in PlantUML?

I cannot make a nested box in plantUML. @startuml box "B0" #LightBlue Bob -> Alice : hello Box "B1" #LightYellow Bob --> Cunny : hi end box end box @enduml This gives an error that box cannot be nested. Any other way to show nested box, like…
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
14
votes
1 answer

PlantUML: overlapping activations (multiple threads)

I am trying to show overlapping activations in my sequence diagram (I am using PlantUML) but they are showing as nested activations: For example: @startuml participant T1 participant T2 participant Main T1 -> Main ++ #red: start T2 -> Main ++…
Juan Leni
  • 6,982
  • 5
  • 55
  • 87
14
votes
0 answers

How do you get Plantuml to render uml for an existing project in Android Studio?

Steps I've taken: I have installed the plantuml plugin into Android Studio 1.5.1 on a Windows 7 Pro PC. I then installed Graphviz and set it's dot path and created the Graphviz environment variable. I have restarted EVERYTHING. :) Just in case. I…
Peter Birdsall
  • 3,159
  • 5
  • 31
  • 48
1
2 3
27 28