Author: kono
Date: 2009-12-15 16:35:27 -0800 (Tue, 15 Dec 2009)
New Revision: 18775

Modified:
   csplugins/trunk/ucsd/kono/PSIQUICUniversalClient/plugin.props
   
csplugins/trunk/ucsd/kono/PSIQUICUniversalClient/src/org/cytoscape/webservice/psicquic/PSICQUICUniversalClient.java
Log:
Nested network feature is used to visualize query result.

Modified: csplugins/trunk/ucsd/kono/PSIQUICUniversalClient/plugin.props
===================================================================
--- csplugins/trunk/ucsd/kono/PSIQUICUniversalClient/plugin.props       
2009-12-16 00:21:23 UTC (rev 18774)
+++ csplugins/trunk/ucsd/kono/PSIQUICUniversalClient/plugin.props       
2009-12-16 00:35:27 UTC (rev 18775)
@@ -11,7 +11,7 @@
 pluginDescription=PSICQUIC Web Service Universal Client.  You can perform 
meta-search for <a href="http://code.google.com/p/psicquic/";>PSICQUIC data 
service providers</a>.  This plugin works with Cytoscape 2.7.0 (not released 
yet) or later.
 
 # Plugin version number, this must be two numbers separated by a decimlal.  
Ex. 0.2, 14.03
-pluginVersion=0.06
+pluginVersion=0.07
 
 # Compatible Cytoscape version
 cytoscapeVersion=2.7

Modified: 
csplugins/trunk/ucsd/kono/PSIQUICUniversalClient/src/org/cytoscape/webservice/psicquic/PSICQUICUniversalClient.java
===================================================================
--- 
csplugins/trunk/ucsd/kono/PSIQUICUniversalClient/src/org/cytoscape/webservice/psicquic/PSICQUICUniversalClient.java
 2009-12-16 00:21:23 UTC (rev 18774)
+++ 
csplugins/trunk/ucsd/kono/PSIQUICUniversalClient/src/org/cytoscape/webservice/psicquic/PSICQUICUniversalClient.java
 2009-12-16 00:35:27 UTC (rev 18775)
@@ -21,6 +21,7 @@
 import org.hupo.psi.mi.psicquic.RequestInfo;
 
 import cytoscape.CyNetwork;
+import cytoscape.CyNode;
 import cytoscape.Cytoscape;
 import cytoscape.data.webservice.CyWebServiceEvent;
 import cytoscape.data.webservice.CyWebServiceException;
@@ -275,13 +276,23 @@
                if 
(vmm.getCalculatorCatalog().getVisualStyle(defaultVS.getName()) == null)
                        vmm.getCalculatorCatalog().addVisualStyle(defaultVS);
 
+               
+               // Use nested network feature
+               final CyNode centerNode = Cytoscape.getCyNode(parentName, true);
+               parentNetwork.addNode(centerNode);
+               
                for (CyNetwork net : target) {
                        vmm.setVisualStyle(defaultVS);
                        final CyNetworkView targetView = 
Cytoscape.getNetworkView(net
                                        .getIdentifier());
                        targetView.setVisualStyle(defaultVS.getName());
                        targetView.redrawGraph(true, false);
+                       CyNode nestedNode = Cytoscape.getCyNode(net.getTitle(), 
true);
+                       nestedNode.setNestedNetwork(net);
+                       parentNetwork.addNode(nestedNode);
+                       parentNetwork.addEdge(Cytoscape.getCyEdge(nestedNode, 
centerNode, "interaction", "query_result", true));
                }
+               Cytoscape.createNetworkView(parentNetwork);
 
                query = null;
                queryList = null;

--

You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.


Reply via email to