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

PlantUML basic example

I'm evaluating if PlantUML can be a good alternative to GraphViz. It's promoted as "intuitive" but honestly the very first example from the homepage is already confusing. Why does the following create "Bob" and "Alice" twice? I'm seeing 2 nodes in…
Bouke Versteegh
  • 4,097
  • 1
  • 39
  • 35
4
votes
1 answer

plantuml - better disposition of arrows and text

I'm trying to plot this component diagram with plantuml @startuml skinparam linetype ortho left to right direction folder BASE { folder foo { component aaa } folder bar { component bbb folder ENV { …
Federico Destefanis
  • 968
  • 1
  • 16
  • 27
4
votes
1 answer

Embed a plantuml diagram somewhere in a docstring (with the Sphinx plantuml extension)

I installed the sphinxcontrib-plantuml extension which works fine if I run the HTML builder e.g. with following testmodule.rst file for a corresponding testmodule.py file: testmodule module ================= .. automodule:: testmodule …
El tornillo
  • 437
  • 3
  • 16
4
votes
2 answers

How to get a non-linear layout in class diagram?

A class diagram seems to always be linear - either in horizontal or, if I add left to right direction, vertical. However, in many cases the layout could do a better use of the screen space. Check this one out: This last diagram could easily have A…
Bruno Brant
  • 8,226
  • 7
  • 45
  • 90
4
votes
3 answers

Align packages vertically in PlantUML

I have a class structure of something like this: @startuml package "A" { ABase <|-- A1 ABase <|-- A2 ABase <|-- A3 } package "B" { BBase <|-- B1 BBase <|-- B2 BBase <|-- B3 } package "C" { CBase <|-- C1 CBase <|-- C2 CBase <|--…
petersohn
  • 11,292
  • 13
  • 61
  • 98
4
votes
1 answer

In PlantUML, how do I specify role names at either end of an association between two classes?

How do I specify role names 'employer' and 'employee' at either end of the association 'employs' between the classes 'Person' and 'Company'? That is, of course, different from the name of the association:
nanitous
  • 681
  • 7
  • 17
4
votes
1 answer

PlantUML: How to control the alignment of classes of the same rank?

I found out recently that plantuml sorts of align all the classes of the same rank. Each class is then centered around an invisible line corresponding to that rank Example: Here Class 1, Class2, Class3 and Class4 have the same rank and get centered…
Antoine Lefebvre
  • 346
  • 3
  • 10
4
votes
1 answer

Using required/provided interfaces in component diagrams plantuml

I want to include needed/provided interfaces in my component diagram in PlantUML, but I don't see anywhere in the documentation how this is possible. Can anybody help? Thanks rein
rein
  • 41
  • 1
  • 2
4
votes
0 answers

How to combine multiple javadoc doclets?

I have been working on producing a javadoc for a large project and am not sure what I am trying to do is even possible, or would require making a third doclet combining others. I have been able to successfully use the doclets…
Jacob Block
  • 435
  • 5
  • 15
4
votes
1 answer

Line spacing in PlantUML

In PlantUml, I have an object like this: object MyObject { #field1 #field2 } Which renders like this: I want to have more space between the rows which have the field names (in this case, field1, field2). I tried this: skinparam object { …
bsky
  • 19,326
  • 49
  • 155
  • 270
4
votes
1 answer

How to use asciidoctorj-diagram with Java or Groovy?

PlantUML is a great extension for Asciidoc, but I can't figure out how to use from my groovy code. As far as I can see, the asciidoctorj-diaram module should be part of the current asciidoctorj-Release, so I guess I need no additional dependency.…
rdmueller
  • 10,742
  • 10
  • 69
  • 126
4
votes
1 answer

Rectangular Object Node in Activity Diagram

Can anyone tell me how to design UML's Object Node in PlantUml ? According to the UML's v2.5 spec (section 15.2.4), Object Nodes are supposed to be square, while the regular and most used Action Nodes are squircles. All I can find in the PlantUml…
Jean Bob
  • 565
  • 10
  • 24
4
votes
3 answers

How can I resolve doxygen error: problems running PlantUML?

I've been using doxygen for a while successfully. I also use DOT from graphviz. Now I am trying to integrate PlantUML. I installed java and downloaded plantuml.jar. I added a simple example to one of my doxygen comment blocks /*! \brief …
Kane Anderson
  • 503
  • 1
  • 7
  • 14
4
votes
1 answer

Is there a syntax to define inheritence inside of class definitions in PlantUML?

For class diagrams, the examples I've seen look like class A{ [snip] list of class features } class B{ [snip] list of class features } A <|-- B i.e. the inheritance arrow is explicitly called out. Is there a valid synax where I can just say…
Dave
  • 7,555
  • 8
  • 46
  • 88
4
votes
2 answers

UML drawing API for Java

I am looking for APIs that can draw UML Class diagrams and present them in a JPanel (or any other suitable UI entity) for a window application. It has to be embedded within the application, so I am not looking for some standalone tool that can…
user1028408
  • 1,220
  • 3
  • 15
  • 17