Author: pwang
Date: 2010-09-28 15:15:52 -0700 (Tue, 28 Sep 2010)
New Revision: 22094
Modified:
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/AbstractGraphPartition.java
Log:
Support taskMonitor during partition
Modified:
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/AbstractGraphPartition.java
===================================================================
---
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/AbstractGraphPartition.java
2010-09-28 22:13:03 UTC (rev 22093)
+++
core3/layout-api/trunk/src/main/java/org/cytoscape/view/layout/AbstractGraphPartition.java
2010-09-28 22:15:52 UTC (rev 22094)
@@ -107,6 +107,8 @@
if (edgeWeighter != null)
edgeWeighter.reset();
+ this.taskMonitor = taskMonitor;
+
// Depending on whether we are partitioned or not,
// we use different initialization. Note that if the user only
wants
// to lay out selected nodes, partitioning becomes a very bad
idea!
@@ -115,6 +117,7 @@
// not partitioning. This makes the code further down
// much cleaner
LayoutPartition partition = new
LayoutPartition(network, networkView, selectedOnly, edgeWeighter);
+ partition.setTaskMonitor(taskMonitor);
partitionList = new ArrayList(1);
partitionList.add(partition);
} else if (staticNodes != null && staticNodes.size() > 0) {
--
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.