infovis.graph.io
Class GMLGraphReader
java.lang.Object
infovis.io.AbstractReader
infovis.table.io.AbstractTableReader
infovis.graph.io.AbstractGraphReader
infovis.graph.io.GMLGraphReader
public class GMLGraphReader
- extends AbstractGraphReader
Reader for the GML graph file format.
- Version:
- $Revision: 1.5 $
- Author:
- Jean-Daniel Fekete
- InfoVis factory arguments:
- GraphReaderFactory gml
Methods inherited from class infovis.graph.io.AbstractGraphReader |
findLinkShape, findLinkShapes, findNodeShape, findNodeShapes, getGraph, getLinkShape, getLinkShapes, getNodeShape, getNodeShapes, reset, setLinkShape, setNodeShape |
Methods inherited from class infovis.table.io.AbstractTableReader |
close, getBuffer, getBufferedReader, getCommentChar, getField, getIn, getTable, ignoreLine, isEof, read, readInt, readLine, readQuoted, setBuffer, setCommentChar, setEof, setTable, skipToEol |
GMLGraphReader
public GMLGraphReader(InputStream in,
String name,
Graph graph)
getBbox
public Rectangle2D.Float getBbox()
- Description copied from class:
AbstractGraphReader
- Returns the rectangle containing the layed-out graph
- Specified by:
getBbox
in class AbstractGraphReader
- Returns:
- the rectangle containing the layed-out graph
or null if it is not computed.
parseList
public ArrayList parseList()
throws IOException
- Throws:
IOException
load
public boolean load()
throws WrongFormatException
- Description copied from class:
AbstractReader
- Main method for loading the file.
The loading may fail at any point, leaving the table in an indefinite
state if the methods returns false.
- Specified by:
load
in class AbstractReader
- Returns:
- true if the file has been loaded without error, false otherwise.
- Throws:
WrongFormatException
- if the format is not the one expected.
getNode
public int getNode(String id)
findNode
public int findNode(String id)
parseGraph
public boolean parseGraph(ArrayList list)
parseNode
public boolean parseNode(ArrayList list)
addNodeAttributes
public boolean addNodeAttributes(int node,
String prefix,
ArrayList list)
parseEdge
public boolean parseEdge(ArrayList list)
addEdgeAttributes
public boolean addEdgeAttributes(int edge,
String prefix,
ArrayList list)
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.