1

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 ?

2
  • 1
    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. Commented Jul 11, 2012 at 11:37
  • Yes, I can go through its source Commented Jul 11, 2012 at 14:43

4 Answers 4

2

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.

Sign up to request clarification or add additional context in comments.

3 Comments

That helps, but I will wait to see If I can get even better/powerful APIs
ok, no problem. btw do you intend on creating UMLs of your own Java code, or having the possibility of providing the user with UML graphs at runtime?
I have some info which I need to display using UML diagrams. I should have the possibility to structure it the way I want.
0

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

Comments

0

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

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.