Author: kono
Date: 2009-12-14 14:17:49 -0800 (Mon, 14 Dec 2009)
New Revision: 18755
Modified:
cytoscape/trunk/src/cytoscape/CyNode.java
Log:
Delete nested network context menu command calls redrawGraph() method to apply
correct visual style.
Modified: cytoscape/trunk/src/cytoscape/CyNode.java
===================================================================
--- cytoscape/trunk/src/cytoscape/CyNode.java 2009-12-14 21:05:58 UTC (rev
18754)
+++ cytoscape/trunk/src/cytoscape/CyNode.java 2009-12-14 22:17:49 UTC (rev
18755)
@@ -246,10 +246,7 @@
if (graphPerspective == this.nestedNetwork)
return;
- // Let listeners know that the previous nested network was
removed
- if (this.nestedNetwork != null) {
-
Cytoscape.getPropertyChangeSupport().firePropertyChange(Cytoscape.NESTED_NETWORK_DESTROYED,
this, this.nestedNetwork);
- }
+ final GraphPerspective oldNestedNetwork = this.nestedNetwork;
// create a Node Attribute "nested.network.id" for this Node
final String networkID = ((CyNetwork)(graphPerspective == null
? this.nestedNetwork : graphPerspective)).getIdentifier();
@@ -287,6 +284,10 @@
Cytoscape.getNodeAttributes().deleteAttribute(this.getIdentifier(),
HAS_NESTED_NETWORK_ATTR);
}
+ // Let listeners know that the previous nested network was
removed
+ if (oldNestedNetwork != null)
+
Cytoscape.getPropertyChangeSupport().firePropertyChange(Cytoscape.NESTED_NETWORK_DESTROYED,
this, oldNestedNetwork);
+
// Let listeners know nested network was assigned to this node.
if (this.nestedNetwork != null) {
Cytoscape.getPropertyChangeSupport().firePropertyChange(Cytoscape.NESTED_NETWORK_CREATED,
this, graphPerspective);
--
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.