Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.data.writers
Class XGMMLWriter

java.lang.Object
  extended by cytoscape.data.writers.XGMMLWriter

public class XGMMLWriter
extends Object

Write network and attributes in XGMML format and
marshall it in a streme.

Since:
Cytoscape 2.6
Version:
1.2
Author:
kono, scooter
See Also:
XGMMLReader

Field Summary
static String BACKGROUND
           
static String GRAPH_VIEW_CENTER_X
           
static String GRAPH_VIEW_CENTER_Y
           
static String GRAPH_VIEW_ZOOM
           
 
Constructor Summary
XGMMLWriter(CyNetwork network, CyNetworkView view)
          Constructor.
XGMMLWriter(CyNetwork network, CyNetworkView view, boolean noCytoscapeGraphics)
          Constructor.
 
Method Summary
 void write(Writer writer)
          Write the XGMML file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKGROUND

public static final String BACKGROUND
See Also:
Constant Field Values

GRAPH_VIEW_ZOOM

public static final String GRAPH_VIEW_ZOOM
See Also:
Constant Field Values

GRAPH_VIEW_CENTER_X

public static final String GRAPH_VIEW_CENTER_X
See Also:
Constant Field Values

GRAPH_VIEW_CENTER_Y

public static final String GRAPH_VIEW_CENTER_Y
See Also:
Constant Field Values
Constructor Detail

XGMMLWriter

public XGMMLWriter(CyNetwork network,
                   CyNetworkView view)
            throws IOException,
                   URISyntaxException
Constructor.
Initialize data objects to be saved in XGMML file.

Parameters:
network - CyNetwork object to be saved.
view - CyNetworkView for the network.
Throws:
URISyntaxException
JAXBException
IOException

XGMMLWriter

public XGMMLWriter(CyNetwork network,
                   CyNetworkView view,
                   boolean noCytoscapeGraphics)
            throws IOException,
                   URISyntaxException
Constructor.
Initialize data objects to be saved in XGMML file.

Parameters:
network - CyNetwork object to be saved.
view - CyNetworkView for the network.
noCytoscapeGraphics - boolean to indicate whether cytoscape graphics attributes should be written
Throws:
URISyntaxException
JAXBException
IOException
Method Detail

write

public void write(Writer writer)
           throws IOException
Write the XGMML file.
This method creates all JAXB objects from Cytoscape internal
data structure, and them marshall it into an XML (XGMML) document.

Parameters:
writer - Witer to create XGMML file
Throws:
IOException

www.cytoscape.org