|
Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.data.readers.AbstractGraphReader
cytoscape.data.readers.XGMMLReader
public class XGMMLReader
XGMML file reader.
This version is Metanode-compatible.
XGMMLWriter
Constructor Summary | |
---|---|
XGMMLReader(InputStream is)
Constructor. |
|
XGMMLReader(String fileName)
Constructor. |
|
XGMMLReader(String fileName,
cytoscape.task.TaskMonitor monitor)
|
Method Summary | |
---|---|
void |
doPostProcessing(CyNetwork network)
Executes post-processing: no-op. |
Color |
getBackgroundColor()
|
Color |
getColor(String colorString)
Convert a valid string into Color object. |
int[] |
getEdgeIndicesArray()
Part of interace contract |
Point2D |
getGraphViewCenter()
Returns the graph view center. |
Double |
getGraphViewZoomLevel()
Returns the zoom level read from the the xgmml file. |
List |
getMetanodeList()
|
String |
getNetworkID()
|
cytoscape.generated2.RdfRDF |
getNetworkMetadata()
|
String |
getNetworkName()
Gets the name of the network. |
int[] |
getNodeIndicesArray()
Part of interace contract |
void |
layout(GraphView myView)
Based on the graphic attributes, layout the graph. |
void |
read()
Reads/imports the graph. |
void |
setNetworkAttributes(CyNetwork cyNetwork)
This should be called after other classes actually creates CyNetwork object. |
Methods inherited from class cytoscape.data.readers.AbstractGraphReader |
---|
getEdgeAttributes, getNodeAttributes, getRootGraph, read |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XGMMLReader(String fileName)
fileName
- File name of local XGMML file.
FileNotFoundException
public XGMMLReader(InputStream is)
is
- Input stream of XGMML file,public XGMMLReader(String fileName, cytoscape.task.TaskMonitor monitor)
Method Detail |
---|
public void read() throws IOException
GraphReader
read
in interface GraphReader
read
in class AbstractGraphReader
IOException
- IO Errors.public List getMetanodeList()
public Double getGraphViewZoomLevel()
public Point2D getGraphViewCenter()
public void layout(GraphView myView)
layout
in interface GraphReader
layout
in class AbstractGraphReader
myView
- GINY's graph view object.public int[] getNodeIndicesArray()
getNodeIndicesArray
in interface GraphReader
getNodeIndicesArray
in class AbstractGraphReader
public int[] getEdgeIndicesArray()
getEdgeIndicesArray
in interface GraphReader
getEdgeIndicesArray
in class AbstractGraphReader
public String getNetworkID()
public String getNetworkName()
GraphReader
getNetworkName
in interface GraphReader
getNetworkName
in class AbstractGraphReader
public cytoscape.generated2.RdfRDF getNetworkMetadata()
public Color getColor(String colorString)
colorString
-
public Color getBackgroundColor()
public void setNetworkAttributes(CyNetwork cyNetwork)
cyNetwork
- CyNetwork object for the loaded network.public void doPostProcessing(CyNetwork network)
AbstractGraphReader
doPostProcessing
in interface GraphReader
doPostProcessing
in class AbstractGraphReader
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |