• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Visualizing instances of objects and their relationship

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to draw a picture of the relationships between different libraries. I created a library class, each instance represents a library I found in the code tree. The Library class has a hashmap which holds references to the other libraries. I have my Universe of Libraries created and I can run crude reports (System.out.println) but I would really like to visualize this information, draw each library as a rectangle, each references as a line between 2 rectangles. I have been looking at Java graphics2d but I have come to the conclusion that this is easier said than done.

My first question is if anybody has ever done something similar and if there are frameworks or design patterns for this sort of requirement out there. I have never really worked with graphics so I do not even know where to start.

One of my big worries is how am I going to lay out these potentially hundreds of rectangles (and even more connections) in such a way that it stays readable and useful.

Any help would be greatly appreciated.

Onion rings are vegetable donuts. Taste this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!