Author: pwang
Date: 2011-11-07 13:33:21 -0800 (Mon, 07 Nov 2011)
New Revision: 27423
Modified:
csplugins/trunk/ucsd/pwang/jActiveModules-impl/src/main/java/csplugins/jActiveModules/ActivePaths.java
Log:
Fixed laypout issue
Modified:
csplugins/trunk/ucsd/pwang/jActiveModules-impl/src/main/java/csplugins/jActiveModules/ActivePaths.java
===================================================================
---
csplugins/trunk/ucsd/pwang/jActiveModules-impl/src/main/java/csplugins/jActiveModules/ActivePaths.java
2011-11-07 18:33:42 UTC (rev 27422)
+++
csplugins/trunk/ucsd/pwang/jActiveModules-impl/src/main/java/csplugins/jActiveModules/ActivePaths.java
2011-11-07 21:33:21 UTC (rev 27423)
@@ -276,21 +276,18 @@
aEdge.getCyRow().set(EDGE_SCORE, overlapScore);
}
- //4. Create an view for overview network and apply visual style
+ //4. Create a view for overview network and apply visual style
//Cytoscape.createNetworkView(overview,
overview.getIdentifier(), tuning(), null);
final CyNetworkView newView =
ServicesUtil.cyNetworkViewFactoryServiceRef.getNetworkView(overview);
ServicesUtil.cyNetworkViewManagerServiceRef.addNetworkView(newView);
-// this.visualMappingManager.setVisualStyle(overviewVS, newView);
-
- //newView.updateView();
-
// Apply layout for overview
- //CyLayoutAlgorithm alg =
ServicesUtil.cyLayoutsServiceRef.getLayout("force-directed");
layoutAlgorithm.setNetworkView(newView);
- ServicesUtil.taskManagerServiceRef.execute(layoutAlgorithm);
+
this.insertTasksAfterCurrentTask(layoutAlgorithm.getTaskIterator());
+
+// this.visualMappingManager.setVisualStyle(overviewVS, newView);
+// newView.updateView();
-
// Create view for top n modules
int n = -1;
try {
@@ -307,14 +304,12 @@
for (int i=0; i<n; i++){
CyNetworkView theView =
ServicesUtil.cyNetworkViewFactoryServiceRef.getNetworkView(subnetworks[i]);
ServicesUtil.cyNetworkViewManagerServiceRef.addNetworkView(theView);
-
+
+ layoutAlgorithm.setNetworkView(theView);
+
this.insertTasksAfterCurrentTask(layoutAlgorithm.getTaskIterator());
+
//
this.visualMappingManager.setVisualStyle(moduleVS, theView);
// theView.updateView();
-
-// CyLayoutAlgorithm alg_f =
ServicesUtil.cyLayoutsServiceRef.getLayout("force-directed");
- layoutAlgorithm.setNetworkView(theView);
-
-
ServicesUtil.taskManagerServiceRef.execute(layoutAlgorithm);
}
}
--
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.