Author: scooter
Date: 2010-09-24 16:22:09 -0700 (Fri, 24 Sep 2010)
New Revision: 22054
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/Cytoscape.java
Log:
Make addNetwork public to avoid (ab)use of NETWORK_CREATED events...
Modified: cytoscape/trunk/application/src/main/java/cytoscape/Cytoscape.java
===================================================================
--- cytoscape/trunk/application/src/main/java/cytoscape/Cytoscape.java
2010-09-24 22:47:01 UTC (rev 22053)
+++ cytoscape/trunk/application/src/main/java/cytoscape/Cytoscape.java
2010-09-24 23:22:09 UTC (rev 22054)
@@ -1197,7 +1197,16 @@
}
- protected static void addNetwork(CyNetwork network, String title,
CyNetwork parent, boolean create_view) {
+ /**
+ * Add a network to Cytoscape's internal list of networks. This also
fires the NETWORK_CREATED event
+ * and as a byproduct adds the network to the Network Panel.
+ *
+ * @param network the network to add
+ * @param title the title (name) of the network
+ * @param parent the parent of the network to be added
+ * @param create_view if <b>true</b> create the view for this network
+ */
+ public static void addNetwork(CyNetwork network, String title,
CyNetwork parent, boolean create_view) {
getNetworkMap().put(network.getIdentifier(), network);
network.setTitle(title);
--
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.