|
Cytoscape 2.7.0 (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.GMLReader
public class GMLReader
This class is responsible for converting a gml object tree into cytoscape objects New features to the current version: 1. Small bug fixes. 2. Translate all features in the GML file. This includes 3. New Visual Style will be generated when you call this class. The new style saves all visual features (like node shape) and will not be lost even after other style selected.
| Constructor Summary | |
|---|---|
GMLReader(InputStream is,
String name)
Constructor. |
|
GMLReader(String filename)
Constructor. |
|
GMLReader(String filename,
TaskMonitor taskMonitor)
Constructor. |
|
| Method Summary | |
|---|---|
void |
doPostProcessing(CyNetwork net)
DOCUMENT ME! |
void |
extract()
DOCUMENT ME! |
Color |
getColor(String colorString)
Create a color object from the string like it is stored in a gml file |
int[] |
getEdgeIndicesArray()
Part of interace contract |
CyLayoutAlgorithm |
getLayoutAlgorithm()
getLayoutAlgorithm is called to get the Layout Algorithm that will be used to layout the resulting graph. |
List<KeyValue> |
getList()
Returns a list containing the gml object tree |
int[] |
getNodeIndicesArray()
Part of interface contract |
void |
layout(CyNetworkView myView)
layout the graph based on the GML values we read |
void |
read()
Read GML file contents |
void |
setTaskMonitor(TaskMonitor monitor)
Sets the task monitor we want to use |
void |
showMaps()
DOCUMENT ME! |
| Methods inherited from class cytoscape.data.readers.AbstractGraphReader |
|---|
getNetworkName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GMLReader(String filename)
filename - File name.
public GMLReader(InputStream is,
String name)
is - Input stream of GML file,
public GMLReader(String filename,
TaskMonitor taskMonitor)
filename - File name.taskMonitor - TaskMonitor Object.| Method Detail |
|---|
public void setTaskMonitor(TaskMonitor monitor)
setTaskMonitor in class AbstractGraphReadermonitor - the TaskMonitor to usepublic void read()
read in interface GraphReaderread in class AbstractGraphReaderpublic List<KeyValue> getList()
public CyLayoutAlgorithm getLayoutAlgorithm()
getLayoutAlgorithm in interface GraphReadergetLayoutAlgorithm in class AbstractGraphReaderpublic void layout(CyNetworkView myView)
myView - the view of the network we want to layoutpublic void extract()
public void showMaps()
public int[] getNodeIndicesArray()
getNodeIndicesArray in interface GraphReadergetNodeIndicesArray in class AbstractGraphReaderpublic int[] getEdgeIndicesArray()
getEdgeIndicesArray in interface GraphReadergetEdgeIndicesArray in class AbstractGraphReaderpublic Color getColor(String colorString)
public void doPostProcessing(CyNetwork net)
doPostProcessing in interface GraphReaderdoPostProcessing in class AbstractGraphReadernet - DOCUMENT ME!
|
www.cytoscape.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||