Hi Russ,
If you want to look at the GridLayout code, it's in
src/cytoscape/layout/algorithms/GridNodeLayout.java. However, I think
what you really want to do is to just call that from your plugin. To do
that, you would do the following:
CyLayoutAlgorithm gridLayout = CyLayouts.getLayout("grid");
gridLayout.doLayout(myNetworkView);
Similarly, you can use any of the other Cytoscape layouts in the same
way. For example:
CyLayoutAlgorithm forceLayout = CyLayouts.getLayout("force-directed");
forceLayout.doLayout(myNetworkView);
-- scooter
> --
>
> You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
> To post to this group, send email to
cytoscap...@googlegroups.com.
> To unsubscribe from this group, send email to
cytoscape-disc...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/cytoscape-discuss?hl=en.
>
>
>