3 messages in org.netbeans.graph.usersRe: TreeGraphLayout doubt
FromSent OnAttachments
karthikMay 31, 2007 3:43 am 
David KasparMay 31, 2007 6:54 am 
karthikJun 3, 2007 11:48 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: TreeGraphLayout doubtActions...
From:David Kaspar (Davi@Sun.COM)
Date:May 31, 2007 6:54:59 am
List:org.netbeans.graph.users

Hi Karthik,

The only reason is that the TreeGraphLayout has been implemented before GraphLayout class was introduced and the TreeGraphLayout have not been converted to use it.

I have entered an issue #105278 ( http://graph.netbeans.org/issues/show_bug.cgi?id=105278 ). I will try to implement it ASAP - after passing APIreview (1-2 weeks) it will be committed to the CVS.

For now you can copy paste the TreeGraphLayout class. To convert it to GraphPinScene, change the constructor parameter and "resolveChildren" method implementation to use code similar to "UniversalGraph.createUniversalGraph(GraphPinScene).findNodeEdges" method.

Regards, David

karthik wrote:

Hi,

I have a GraphPinScene<String, String, String> object. This scene contains children which are connected in a tree fashion. The ideal layout for my application will be TreeGraphLayout but unfortunately TreeGraphLayout takes GraphScene but not GraphPinScene. Is there some way by which I can use GraphPinScene along with TreeGraphLayout? Is there any particular reason why GraphPinScene is not supported in TreeGraphLayout?

Thanks, Karthik