cytoscape.data.writers
Class XGMMLWriter
java.lang.Object
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
Method Summary |
void |
write(Writer writer)
Write the XGMML file. |
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
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
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