← Revision 1 as of 2005-08-18 22:49:57 →
69
Comment:
|
829
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#pragma section-numbers on | |
Line 3: | Line 4: |
=== As a plugin === |
This guide is intended to provide code examples for using CytoscapeData to access all of your information. Any questsions should be directed to cytoscape-discuss@googlegroups.com |
Line 5: | Line 7: |
=== getting stuff === |
=== Acessing Cytoscape Data === All attributes in Cytoscape are shared acrosss all CyNetworks. So there is only one global CytoscapeData instance for nodes and edges. These are available from the {{{cytoscape.Cytoscape}}} class. {{{#!java import cytoscape.Cytoscape; import cytoscape.data.CytoscapeData; public class MyDataClass { MyDataClass () { // get the node CytoscapeData Instance CytoscapeData node_data = Cytoscape.getNodeNetworkData(); // get the edge CytoscapeData Instance CytoscapeData edge_data = Cytoscape.getEdgeNetworkData(); } }}} |
This guide is intended to provide code examples for using CytoscapeData to access all of your information. Any questsions should be directed to cytoscape-discuss@googlegroups.com
1. Acessing Cytoscape Data
All attributes in Cytoscape are shared acrosss all CyNetworks. So there is only one global CytoscapeData instance for nodes and edges. These are available from the cytoscape.Cytoscape class.
1 import cytoscape.Cytoscape;
2 import cytoscape.data.CytoscapeData;
3
4 public class MyDataClass {
5
6 MyDataClass () {
7
8 // get the node CytoscapeData Instance
9 CytoscapeData node_data = Cytoscape.getNodeNetworkData();
10
11 // get the edge CytoscapeData Instance
12 CytoscapeData edge_data = Cytoscape.getEdgeNetworkData();
13 }
14