Questions tagged [umlgraph]

UMLGraph allows the declarative specification and drawing of UML class and sequence diagrams.

UMLGraph is an open-source system that allows the declarative specification and drawing of UML class and sequence diagrams.

One specifies a class diagram using the Java syntax complemented by javadoc tags. Running the UmlGraph doclet on the specification will generate a Graphviz diagram specification that can be automatically processed to create Postscript, GIF, SVG, JPEG, fig, or Framemaker drawings.

The following is an example of a class diagram specification and the resulting UML diagram:

class Person {
    String Name;
}

class Employee extends Person {}

class Client extends Person {}

UMLGraph-generated class diagram

Sequence diagrams are specified using pic macros to define objects and method invocations. The GNU plotutils pic2plot program can then process the sequence diagram to create a PNG, PNM, (pseudo)GIF, SVG, AI, Postscript, CGM, FIG, PCL, HPGL, Regis, or TEK drawing.

The following is an example of a sequence diagram specification and the resulting UML diagram:

# Define the objects
object(O,"o:Toolkit");
placeholder_object(P);
step();

# Activation and messages
active(O);
message(O,O,"callbackLoop()");
create_message(O,P,"p:Peer");
message(O,P,"handleExpose()");
active(P);
return_message(P,O,"");
inactive(P);
destroy_message(O,P);
inactive(O);

# Complete the lifeline of O
step();
complete(O);

UMLGraph-generated sequence diagram

More information on UMLGraph can be found on the the project's web page. The project's source code is hosted on GitHub.

13 questions
3
votes
0 answers

How to install and configure UMLGRAPH in windows?

I am trying to install UMLGraph to generate a .dot file from java class. I will be using this .dot file to feed to Graphviz(a PNG class diagram generator) . However, I am facing certian issues while the installation . The official UML installation…
2
votes
4 answers

Error in generating javadoc using UMLGraph, getting error in processing "dot file"

I am trying to generate class diagram from the source code through UmlGraph. I have built and created the umlgraph.jar but while i am using it in my project it is giving me the below error :: [javadoc] java.io.IOException: Cannot run program "dot":…
user3322822
  • 133
  • 3
  • 13
1
vote
1 answer

Changing EdgeFontSize in UMLGraph

I try to change the font size for the associotion text in UMLGraph using the @opt edgefontsize but it seems that a default font size is used. Note that the option @opt edgefontname works fine. I'm on UMLGraph doclet version R5_7_2-32-g40b5a6 Here a…
Marmite Bomber
  • 19,886
  • 4
  • 26
  • 53
1
vote
2 answers

Generating Sequence Diagrams Using UMLGraph

I am using UMLGraph to generate sequence diagrams. I have a problem using the pic2plot program to generate svg images. It clips the image and parts of the image don't show. This problem is also documented in the FAQ: How can I prevent clipped SVG…
walters
  • 1,427
  • 3
  • 17
  • 28
1
vote
1 answer

Changing Font Size in Notes in UMLGraph

How it is possible to modify the default font size of UML notes in class diagram? /** * @opt attributes * @note How to modify font size of this text? */ I tried with all documented fontsize options from the documentation site, but none of…
Marmite Bomber
  • 19,886
  • 4
  • 26
  • 53
1
vote
1 answer

UMLGraph Installation on Mac

I am trying to get UMLGraph complied on my MacBook Pro(OSX 10.9.5) and getting an error when trying to run 'ant build.xml'. Has anyone had this issue? Here is the error: UMLGraph-5.7_2.3-SNAPSHOT$ ant build.xml Buildfile:…
bean2461
  • 31
  • 1
  • 2
1
vote
0 answers

How can one set javadoc options in a wrapper of the standard doclet?

The UMLGraph doclet UmlGraphDoc first runs the standard Java doclet with code like the following: public static boolean start(RootDoc root) { com.sun.tools.doclets.standard.Standard.start(root); and then modifies the result to add UML class…
Diomidis Spinellis
  • 18,734
  • 5
  • 61
  • 83
0
votes
2 answers

Is there any alternative for anotations and comments in UMLGraph

I am using UMLGraph for Java to UML. It says the following in documentation for relationships: association relationships (specified using the javadoc @assoc tag) navigatable (directed) association relationships (specified using the javadoc @navassoc…
Saket
  • 431
  • 2
  • 6
  • 15
0
votes
1 answer

tools.jar not packaged into the maven package. Getting java.lang.NoClassDefFoundError: com/sun/tools/javadoc/Main

I have created a maven project which needs tools.jar to be included. I have added the jar into the lib folder and included the following in the pom.xml. com.sun tools
K_N
  • 1
  • 3
0
votes
1 answer

why executing umlgraph command sets UMLGRAPH_HOME path to "lib"?

UMLGRAPH_HOME=C:\Program Files\Java\jdk1.8.0_241\lib The above is the path set before the execution of "umlgraph" command in command line. After my execution, the path changes to lib as UMLGRAPH_HOME=lib. umlgraph command check So, my questions are…
Saranya
  • 31
  • 4
0
votes
1 answer

How can I exclude package private class using Class Diagram Options?

I trying to generate UML Graph with Javadoc using UMLGraph. I'm searching an option on here for excluding my package-private class from being visualized. // package-private // javadoc excludes it. that's ok. // umlgraph keeps it. that's not…
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
0
votes
1 answer

UmlGraphDoc Errors running Graphviz on

I try to useUmlGraphDoc, however, every time I run the javadoc command, I get a weird error: [javadoc] javadoc: warning - Errors running Graphviz on /private/tmp/test/docs/Class1.dot [javadoc] Building Context view for class Fail [javadoc] javadoc:…
Matt3o12
  • 4,192
  • 6
  • 32
  • 47
-1
votes
1 answer

Using UMLGraph to generate single dot file for multiple java classes

How can I ask UMLGraph to generate a single diagram for all the underlying .java classes within a package ? I am using UMLGraph along with Graphviz to generate a .png UML diagram file. The command that I am running to geenrate a.dot file is : java…