Cytoscape 2.8.0 API

cytoscape.data.readers
Class GMLWriter

java.lang.Object
  extended by cytoscape.data.readers.GMLWriter

public class GMLWriter
extends Object

The purpse of this class is to translate cytoscape data structures into a gml object tree, we can then use the gml parser to write this tree out into a file


Constructor Summary
GMLWriter()
           
 
Method Summary
 void writeGML(CyNetwork network, CyNetworkView view, List oldList)
          Given an object tree given in oldList, update it with the information provided in network and optional view (if view is not null).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLWriter

public GMLWriter()
Method Detail

writeGML

public void writeGML(CyNetwork network,
                     CyNetworkView view,
                     List oldList)
Given an object tree given in oldList, update it with the information provided in network and optional view (if view is not null). The GML spec requires that we remember all information provided in the original gml file. Therefore, we pass in the old object tree as oldList, as execute functions which will update that data structure. We would also like to save files that may not have been loaded from a gml file. This list is empty in that case. Those same update functions must be able to create all relevant key-value pairs as well then.


Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.