logo       

Re: TreeGraphLayout doubt: msg#00075

java.netbeans.modules.graph.user

Subject: Re: TreeGraphLayout doubt


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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe-Hi7mZnf3vbIkiw2pgZvNdR2eb7JE58TQ@xxxxxxxxxxxxxxxx
> For additional commands, e-mail:
> users-help-Hi7mZnf3vbIkiw2pgZvNdR2eb7JE58TQ@xxxxxxxxxxxxxxxx
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise