fmII
Wed, Jul 09th home | browse | articles | contact | chat | submit | faq | newsletter | about | stats | scoop 06:43 UTC
in
Section
login «
register «
recover password «
[Project] add release | add branch | add screenshot | broken links | change owner | email subscribers | update project | update branch (urls) [Project]

 UMLGraph - Default branch
Section: Unix

 

Added: Mon, Mar 15th 2004 08:45 UTC (4 years, 3 months ago) Updated: Thu, Nov 29th 2007 08:32 UTC (7 months, 13 days ago)


Screenshot About:
UMLGraph facilitates the declarative specification and drawing of UML class and sequence diagrams. One can specify a class design using the Java syntax complemented by Javadoc tags. Running the UmlGraph doclet on the specification generates a Graphviz diagram specification that can be automatically processed to create Postscript, GIF, SVG, JPEG, fig, or Framemaker drawings. Similarly, sequence diagrams are specified using declarative pic macros and compiled with the GNU plotutils pic2plot program into a PNG, PNM, (pseudo) GIF, SVG, AI, Postscript, CGM, FIG, PCL, HPGL, Regis, or TEK drawing.

Author:
Diomidis Spinellis [contact developer]

Rating:
8.61/10.00 (8 votes)

Homepage:
http://www.umlgraph.org/
Tar/GZ:
http://www.umlgraph.org/UMLGraph-5.0.tar.gz
Zip:
http://www.umlgraph.org/UMLGraph-5.0.zip
Changelog:
http://www.umlgraph.org/doc/ver.html
Jar:
http://www.umlgraph.org/jars/UmlGraph-5.0.jar
Mirror site:
http://www.dmst.aueb.gr/dds/sw/umlgraph-mirror

Trove categories: [change]
[Development Status]  5 - Production/Stable
[Environment]  Console (Text Based)
[Intended Audience]  Developers
[License]  OSI Approved :: BSD License (original)
[Programming Language]  Java
[Topic]  Multimedia :: Graphics :: Editors :: Vector-Based, Software Development :: Documentation

Dependencies: [change]
GNU Plotutils (required)
graphviz (required)
[download links]

 
Project admins: [change]
» Diomidis Spinellis (Owner)

» Rating: 8.61/10.00 (Rank N/A)
» Vitality: 0.06% (Rank 2503)
» Popularity: 3.53% (Rank 1182)

project statsdownload stats
(click to enlarge graphs)
   Record hits: 37,063
   URL hits: 15,547
   Subscribers: 89

Other projects from the same categories:
Trace Modeler
Debrief
Domino Javadoc Generator
Clara
TEKlib

Users who subscribed to this project also subscribed to:
WorldForge::Ember
remake
OpenLayers
XTrader
Arno's IPTABLES Firewall Script


Add comment · Rate this project · Subscribe to new releases · Ignore this project · Email this project to a friend · Project record in XML

 Branches

Branch Version Last release License URLs
Default 5.0 29-Nov-2007 BSD License (original) Homepage Tar/GZ Changelog

 Comments

[»] Lots of warnings.
by Russell thamm - Feb 26th 2008 15:06:28

Any reason why I am getting thousands of warnings of the form:

javadoc: warning - Warning: illegal attribute balign in <TD> - ignored

when using the doclet.

[reply] [top]


[»] HTML labels
by Gianni - Jan 3rd 2008 22:00:04

Firstly congratulations to the developer, this is such a useful
tool.

My only issue is that I open the dot files in OmniGraffle which
doesn't support html formatting for labels. Is there any way to
turn off html for labels?

[reply] [top]


[»] Really cool tool
by Shams - Aug 7th 2007 04:19:57

I would like to congratulate the developers on making such a cool tool. The concept of declarative diagramming is simply cool.

Also I would like to know whether there are any plans of using this tool to reverse engineer seuence diagrams.

--
Shams

[reply] [top]


[»] spacing between objects in sequence diagrams
by Fabian Ritzmann - Jul 18th 2007 03:39:25

I have some cases where there is too little space between objects. According to the documentation, the movewid variable should help. However, sequence.pic (version 4.8 and earlier) obviously is not using movewid at all. Does anybody have a solution?

[reply] [top]


[»] charset support when read file.
by Yusuke Fujisawa - Jun 4th 2007 11:14:47

I try UmlGraphDoc, and get garbled html.

so, I check UmlGraphDoc.java.

in alterHtmlDocs method,

reader = new BufferedReader(new FileReader(htmlFile));

please change from FileReader to InputStreamReader.

example code:

reader = new BufferedReader(new InputStreamReader(new FileInputStream(htmlFile),"UTF-8"));


[reply] [top]


[»] Use UMLGraph to create XMI?
by jean - Mar 27th 2007 02:42:47

That would really be excellent. I use a tool called ArchGenXML (http://plone.org/products/archgenxml) to generate Python code from UML diagrams. At the moment I use Poseidon to create the diagrams, specifically so that the XMI exists, but I'd much rather use a textbased tool such as UMLGraph.

[reply] [top]


[»] Sequence diagram feature request: horizontal dashed line in frame
by Stefan Achatz - Mar 10th 2007 01:04:59

Hello,
at first, let me say, that UMLGraph is a dependency of my project:
http://rubyforge.org/projects/ruby-uml/
There i use 'sequence.pic' to automatically build sequence diagrams out of running code.
It also features a tool to combine two such generated pic-files into one, with differences packed in frames.
For this i wanted to ask if it is possible to provide an operation like
separate_frame(name);
which draws a horizontal dashed line at position in named frame?
Thanks in advance
Stefan

[reply] [top]


[»] Sequence Diagrams
by Daniel - Nov 6th 2006 01:02:50

This is tool is great! I have used it already in many different applications.

However, I ran into a problem today. After trying to generate a sequence diagram, I get the following error:

pic2plot:1.pic:18: there is no variable 'active_'
pic2plot:1.pic:18: giving up on this picture

Line 18 contains the following:
message(A, D, "start");

Did anyone experience the same problem and could solve it?

Is there any way to use colors in the sequence diagrams?

Daniel


[reply] [top]


    [»] Re: Sequence Diagrams
    by Fabian Ritzmann - Jul 18th 2007 03:22:58


    > pic2plot:1.pic:18: there is no variable 'active_'

    > pic2plot:1.pic:18: giving up on this picture

    >

    > Line 18 contains the following:

    > message(A, D, "start");


    This is probably too late for the original requester, but for those that run into the same issue - remove the space after the commas, i.e. your command should be looking like this:

    message(A,D,"start");

    [reply] [top]


[»] Using package-info.java
by Neil Hart - Oct 11th 2006 08:31:20

It would be nice to use package-info.java to define views. If that was possible, all of the documentation for the package (class diagrams and their surrounding javadoc comments) would be in one place. It seems that I need to define a Class to get the views. I'd rather not do this since I am then creating new classes. Does this make sense? What is the "best practice" for creating views in your code base.

I've used GraphViz in the past and I like it. I definitely like what you've done by working on top of it. Nice job.

Thanks

[reply] [top]


[»] Issues with spacing variable in sequence diagrams
by Pariah Dog - Dec 30th 2005 06:43:26

Hi,

I love this program. Thank you so much for developing it. I'm developing sequence diagrams under cygwin. I used the cygwin binary for plotutils, as neither plotutils nor graphviz would link under cygwin.

I'm generating both gif and svg output. If I change the value of spacing from 0.25 to 0.3, the tops of the objects and actors are cropped out of the picture.

Is this an isolated cygwin problem? The difference in the svg object box drawing output is as follows:

With default spacing:

<text transform="translate(3.225,-2.8103e-16) scale(1,-1) " style="font-family:'
Helvetica',sans-serif;font-size:0.16912;text-anchor:middle;baseline-identifier:c
enterline;stroke:none;fill:black;">RPW</text>
<line x1="1.7" y1="-0.07" x2="2.25" y2="-0.07" style="stroke-width:0.01146;"/>
<rect x="2.85" y="-0.15" width="0.75" height="0.3" style="stroke-width:0.01146;"
/>


With 0.3 spacing:

<text transform="translate(3.225,3.5215e-16) scale(1,-1) " style="font-family:'H
elvetica',sans-serif;font-size:0.16912;text-anchor:middle;baseline-identifier:ce
nterline;stroke:none;fill:black;">RPW</text>
<line x1="2.95" y1="-0.07" x2="3.5" y2="-0.07" style="stroke-width:0.01146;"/>
<rect x="4.1" y="-0.15" width="0.75" height="0.3" style="stroke-width:0.01146;"/
>

I'm about to pull the svg spec and start studying the dot language to see if I can figure this out on my own. Just wanted to know if others experienced similar issues.

[reply] [top]


    [»] Re: Issues with spacing variable in sequence diagrams
    by Josh Mueller - Jan 8th 2006 22:01:51

    I have experienced the same problem using GNU Win32 plotutils. It does not matter what is generated; I tried png, jpg, and gif. As far as I can tell it derives from plot using a 4x4 drawing window. By adjusting boxwid, boxht, scale and spacing I was able to get most of the generated diagram to be visible. The text, however, is not scaled.

    [reply] [top]


      [»] Re: Issues with spacing variable in sequence diagrams
      by Fabian Ritzmann - Jul 18th 2007 03:29:23

      You can scale the text with pic2plot by passing the -f parameter to it. If you are generating Postscript output e.g. through groff, you can set the font size in your pic file like this: .fam H # font family Helvetica .ft R # font type Roman .ps 6 # font size 6 .PS copy "sequence.pic"; ...

      [reply] [top]


        [»] Re: Issues with spacing variable in sequence diagrams
        by Fabian Ritzmann - Jul 18th 2007 03:33:20

        Sorry, the text got garbled. One more try:

        .fam H # font family Helvetica
        .ft R # font type Roman
        .ps 6 # font size 6

        .PS

        copy "sequence.pic";

        ...

        [reply] [top]


[»] Interaction frames
by Josh Mueller - Oct 15th 2005 20:51:49

I needed interaction frames in a sequence diagram, so I worked out some code for them. It is terrible, I know, but I couldn't think of another way to accomplish my task.

If anyone wants to use it feel free to do so. This even handles nested interaction frames.

#begin_IF(name,IFtype,conditional,left_object)
# Interaction Frame
define begin_IF
{
move to ($4.x,Here.y);
step();

#the tag in upper left corner
$1: box ht boxht wid boxwid/2 invisible $2;
line from $1.nw to $1.ne;
line from $1.ne to $1.e;
line from $1.e to $1.s;
line from $1.s to $1.sw;
line from $1.sw to $1.nw;

#the conditional
box ht boxht wid boxwid/2 invisible $3 with .w at $1.e ljust;
}

#end_IF(name,right_object)
# Interaction Frame
define end_IF
{
#the bouding box
horiz = ($2.x - $1.x) + boxwid;
vert = -1 *(Here.y - $1.y) + spacing;

box ht vert wid horiz with .nw at $1.nw;
}

[reply] [top]


    [»] Re: Interaction frames
    by Josh Mueller - Oct 22nd 2005 17:45:33

    I guess that I should have waited a few days. If anyone is interested I did add conditionals to the frames as well as an alt frame with a conditional.

    [reply] [top]


[»] Class clustering possible?
by Reid M. Pinchback - Oct 10th 2005 08:33:42


Is there some way to have UmlGraph automatically group classes together, perhaps using the cluster concept in the dot language? This would be handy if you wanted classes to be grouped by package, or if you wanted test classes and functional classes in the same package to be organized into two separate groups.

If there is no way to do this now (except by hand-edits of the dot file), I'd like to propose adding the UML package as a feature for a future version. You could do something like what is found in Rational Rose - the package icon can be made large and classes dragged into it for display.

Another option, not quite the same, might be to add something like a @clusters feature that could have multiple values (e.g. "@clusters func, test"). The output dot file could group clustered classes together, and the "-hide" command line option could be extended to allow specification of clusters as well as classes to exclude from the generated view.

[reply] [top]


[»] Concrete methods in abstract classes
by Choy Rim - Jun 21st 2005 22:22:00

Is there a way to show non-abstract (concrete) methods of abstract classes without italics. Currently, it seems that all methods of an abstract class are set in italics indicating that they are abstract even if some of the methods are not abstract.

This makes it hard to show which methods are implemented by which classes in a hierarchy.

--
--choy

[reply] [top]


    [»] Re: Concrete methods in abstract classes
    by Diomidis Spinellis - Sep 4th 2005 06:44:57


    > Is there a way to show non-abstract

    > (concrete) methods of abstract classes

    > without italics. Currently, it seems

    > that all methods of an abstract class

    > are set in italics indicating that they

    > are abstract even if some of the methods

    > are not abstract.

    >

    > This makes it hard to show which methods

    > are implemented by which classes in a

    > hierarchy.

    What you are asking is not supported,and it is also difficult to implement. Unfortunately, GraphViz (the back-end used for drawing the class diagrams), only supports a single font for each node.

    Diomidis

    [reply] [top]


[»] c++?
by Magee - Apr 12th 2005 04:31:57

is there any way this tool can be used/modified to be able to use c++ code? i'd like to be able to specify methods that use pointers, references, and const references, and also multiple inheritance. if not, does anyone know of a similar tool that works with c++?

[reply] [top]


    [»] Re: c++?
    by Diomidis Spinellis - May 29th 2006 07:48:27


    > is there any way this tool can be

    > used/modified to be able to use c++

    > code? i'd like to be able to specify

    > methods that use pointers, references,

    > and const references, and also multiple

    > inheritance. if not, does anyone know

    > of a similar tool that works with c++?

    The idea behind the tool is to use Java as a syntax for creating UML diagrams. This is made possible, because Java's javadoc already contains a standard and functional Java parser. The corresponding infrastructure in C++ is lacking, therefore converting UMLGraph to work with the C++ sytnax will be difficult.

    Diomidis

    [reply] [top]


[»] 1.5 Required?
by Glen Stampoultzis - Apr 10th 2005 22:51:17

I get the following error:

java.lang.UnsupportedClassVersionError: UmlGraph (Unsupported major.minor version 49.0)

Is JDK 1.5 required?

[reply] [top]


    [»] Re: 1.5 Required?
    by Choy Rim - Jun 21st 2005 22:18:25


    > I get the following error:

    >

    > java.lang.UnsupportedClassVersionError:

    > UmlGraph (Unsupported major.minor

    > version 49.0)

    >

    > Is JDK 1.5 required?

    Yes, JDK 1.5 is required as mentioned at http://www.spinellis.gr/sw/umlgraph/doc/ver.html

    --
    --choy

    [reply] [top]


    [»] Re: 1.5 Required?
    by Diomidis Spinellis - Sep 4th 2005 06:40:47


    > [...]

    > Is JDK 1.5 required?

    Version 2.10 (still available from the project's web page) works with JDK 1.4.

    Diomidis

    [reply] [top]




© Copyright 2008 SourceForge, Inc., All Rights Reserved.
About freshmeat.net •  Privacy Statement •  Terms of Use •  Trademark Guidelines •  Advertise •  Contact Us • 
ThinkGeek •  Slashdot  •  ITMJ •  Linux.com •  NewsForge  •  SourceForge.net  •  Surveys •  Jobs •  PriceGrabber