|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.data.readers.XGMMLReader
public class XGMMLReader
XGMMLReader. This version is Metanode-compatible.
Field Summary | |
---|---|
protected static String |
BOOLEAN_TYPE
|
protected static String |
COMPLEX_TYPE
|
protected static String |
DIAMOND
|
protected static String |
EDGE
|
protected static String |
ELLIPSE
|
protected static String |
FLOAT_TYPE
|
protected static String |
GRAPH
|
protected static String |
GRAPHICS
|
protected static String |
HEXAGON
|
protected static String |
INT_TYPE
|
protected static String |
LABEL
|
protected static String |
LINE
|
protected static String |
LIST_TYPE
|
protected static String |
MAP_TYPE
|
protected static String |
NODE
|
protected static String |
OCTAGON
|
protected static String |
PARALELLOGRAM
|
protected static String |
POINT
|
protected static String |
RECTANGLE
|
protected static String |
SOURCE
|
protected static String |
STRING_TYPE
|
protected static String |
TARGET
|
protected static String |
TRIANGLE
|
Constructor Summary | |
---|---|
XGMMLReader(InputStream is)
|
|
XGMMLReader(InputStream is,
List view)
|
|
XGMMLReader(String fileName)
|
Method Summary | |
---|---|
protected void |
createGraph(Graph network)
Create graph directly from JAXB objects |
Color |
getBackgroundColor()
|
Color |
getColor(String colorString)
|
CyAttributes |
getEdgeAttributes()
|
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()
|
RdfRDF |
getNetworkMetadata()
|
String |
getNetworkName()
|
CyAttributes |
getNodeAttributes()
|
int[] |
getNodeIndicesArray()
Part of interface contract |
giny.model.RootGraph |
getRootGraph()
|
void |
layout(giny.view.GraphView myView)
Based on the graphic attribute, layout the graph. |
protected void |
layoutEdge(giny.view.GraphView myView)
|
protected void |
layoutEdgeGraphics(giny.view.GraphView myView,
Graphics graphics,
giny.view.EdgeView edgeView)
|
protected void |
layoutNode(giny.view.GraphView myView)
Layout nodes |
protected void |
layoutNodeGraphics(giny.view.GraphView myView,
Graphics graphics,
giny.view.NodeView nodeView)
|
void |
read()
|
void |
read(boolean canonicalizeNodeNames)
|
protected void |
readAttributes()
|
protected void |
readEdge()
|
void |
readIndex()
|
protected void |
readNode()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static String GRAPH
protected static String NODE
protected static String EDGE
protected static String GRAPHICS
protected static String LABEL
protected static String SOURCE
protected static String TARGET
protected static String RECTANGLE
protected static String ELLIPSE
protected static String LINE
protected static String POINT
protected static String DIAMOND
protected static String HEXAGON
protected static String OCTAGON
protected static String PARALELLOGRAM
protected static String TRIANGLE
protected static final String FLOAT_TYPE
protected static final String INT_TYPE
protected static final String STRING_TYPE
protected static final String LIST_TYPE
protected static final String BOOLEAN_TYPE
protected static final String MAP_TYPE
protected static final String COMPLEX_TYPE
Constructor Detail |
---|
public XGMMLReader(String fileName)
public XGMMLReader(InputStream is)
public XGMMLReader(InputStream is, List view)
Method Detail |
---|
public void readIndex() throws javax.xml.bind.JAXBException, FileNotFoundException
javax.xml.bind.JAXBException
FileNotFoundException
public void read() throws IOException
read
in interface GraphReader
IOException
protected void createGraph(Graph network)
network
- public List getMetanodeList()
protected void readAttributes()
protected void readNode()
protected void readEdge()
public Double getGraphViewZoomLevel()
public Point2D getGraphViewCenter()
public void layout(giny.view.GraphView myView)
layout
in interface GraphReader
myView
- protected void layoutNode(giny.view.GraphView myView)
protected void layoutNodeGraphics(giny.view.GraphView myView, Graphics graphics, giny.view.NodeView nodeView)
protected void layoutEdge(giny.view.GraphView myView)
protected void layoutEdgeGraphics(giny.view.GraphView myView, Graphics graphics, giny.view.EdgeView edgeView)
public int[] getNodeIndicesArray()
getNodeIndicesArray
in interface GraphReader
public int[] getEdgeIndicesArray()
getEdgeIndicesArray
in interface GraphReader
public String getNetworkID()
public String getNetworkName()
public RdfRDF getNetworkMetadata()
public Color getColor(String colorString)
public Color getBackgroundColor()
public void read(boolean canonicalizeNodeNames) throws IOException
read
in interface GraphReader
IOException
public giny.model.RootGraph getRootGraph()
getRootGraph
in interface GraphReader
public CyAttributes getNodeAttributes()
getNodeAttributes
in interface GraphReader
public CyAttributes getEdgeAttributes()
getEdgeAttributes
in interface GraphReader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |