Author: kono
Date: 2009-12-14 14:18:29 -0800 (Mon, 14 Dec 2009)
New Revision: 18756
Modified:
cytoscape/trunk/src/cytoscape/util/NestedNetworkViewUpdater.java
Log:
Delete nested network context menu command calls redrawGraph() method to apply
correct visual style.
Modified: cytoscape/trunk/src/cytoscape/util/NestedNetworkViewUpdater.java
===================================================================
--- cytoscape/trunk/src/cytoscape/util/NestedNetworkViewUpdater.java
2009-12-14 22:17:49 UTC (rev 18755)
+++ cytoscape/trunk/src/cytoscape/util/NestedNetworkViewUpdater.java
2009-12-14 22:18:29 UTC (rev 18756)
@@ -77,6 +77,7 @@
private void setNestedNetworkViews(final List<String> parents, final
boolean created) {
final Collection<CyNetworkView> networkViews =
Cytoscape.getNetworkViewMap().values();
for (final CyNetworkView networkView: networkViews) {
+ boolean applyStyle = false;
for (final String parentNode: parents) {
// If this view contains a parentNode, then
update its nested network view.
final CyNode node =
Cytoscape.getCyNode(parentNode);
@@ -94,8 +95,13 @@
}
((DNodeView)nodeView).setNestedNetworkView(created ? (DGraphView)
nestedNetworkView : null);
}
+ applyStyle = true;
}
}
+
+ // Apply visual style if necessary
+ if (applyStyle)
+ networkView.redrawGraph(/* do layout = */
false, /* apply visual style = */ true);
}
}
--
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.