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.3
- Version:
- 1.0
- Author:
- kono
- 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 javax.xml.bind.JAXBException,
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
javax.xml.bind.JAXBException
write
public void write(Writer writer)
throws javax.xml.bind.JAXBException,
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:
javax.xml.bind.JAXBException
IOException