aspose file tools*
The moose likes Java in General and the fly likes Displaying hierarchy diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Displaying hierarchy diagram" Watch "Displaying hierarchy diagram" New topic
Author

Displaying hierarchy diagram

jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
Hi ranchers,

I have a requirement for displaying a company's parent and subsidaries companies in a hierarchial structure. In case if it s parent company has another subsidary then that also has to be included in the hierarchy and so on.
eg
if customer A has
1. Two parent companies B, C
2. Three subsidiary companies D, E, F.

then the tree should appear like below with connectibng lines

B C

A

D E F


If customer A has two parent companies B, C and three subsidiary companies D, E.
Suppose that,
1. For Customer E, if F is added as Subsidiary in Allied Companies
2. For Company B, if Company G is added as Parent Allied Companies


G

B C

A

D E

F



so is there is any open source component available to solve my problem please suggest


thanks
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

I like the "Graph Editing Framework" of Eclipse, which has some nice, smart layout algorithms for things like this.


[Jess in Action][AskingGoodQuestions]
jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
Hi,

having a tough time with this... can somebody help me out?

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying hierarchy diagram