I'd like to customize an existing graph editor (I'm talking a开发者_开发知识库bout graphs with nodes and vertices) in Java. I'd like to be able to add different kinds of nodes, connections etc. The resulting diagram will then be used for code generations. Do you have any recommendations as to which existing (open source) graph editor/visualization toolkit in Java to use?
JGraph is a nice tool. An other great option is JGraphT. But if you want better interactivity and Dijkstra short paths etc. then you need JUNG2. JUNG2 allows you to have any kind of vertices and edges. Your graph is created with generics, like this: Graph<V, E>
. You can use any class you may need for V (vertex) and E (edge). Scaling and transforming is also easy to implement and very flexible.
精彩评论