1
votes

Is there any Java API (Opensource) that can be used in drawing/creating UML diagrams.

JFreeChart is a Java API to draw charts/bars/graphs, similarly is there any tool to draw UML diagrams using Java ?

4
I won't provide this as an answer, as I don't know how feasible it would be. There is ArgoUML which is an open source tool in Java for creating diagrams. It is open source, and with a quick glance, there appears to be various classes to create the various diagrams..this might be useful to you. - PeskyGnat
Yes, I can go through its source - user691197

4 Answers

2
votes

Perhaps not specifically for UML diagrams but I have been using JUNG to create hierarchical graphs and am very happy with it. Take a look at the examples they have and see if it's useful for you.

0
votes

If you want to create class diagrams, this tutorial shows how to do it with eclipse draw2d.

0
votes

You could check the EMF-based implementation of the UMLTM 2.4.1 metamodel for the Eclipse platform.

This will allow you to create the UML diagrams. Then you could use any EMF-UML compatible tool to visualize them

0
votes

I was looking for a similar thing and then I found about this open source project called PlantUML. They have some good example and pretty much cover everything that you may have wanted.