infovis.graph.io
Class PajekNetReader
java.lang.Object
infovis.io.AbstractReader
infovis.table.io.AbstractTableReader
infovis.graph.io.AbstractGraphReader
infovis.graph.io.PajekNetReader
public class PajekNetReader
- extends AbstractGraphReader
Class PajekNetReader
- Version:
- $Revision: 1.2 $
- Author:
- Jean-Daniel Fekete
- InfoVis factory arguments:
- GraphReaderFactory net
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, readLine, readQuoted, setBuffer, setCommentChar, setEof, setTable |
PajekNetReader
public PajekNetReader(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.
readString
public String readString()
throws IOException
- Throws:
IOException
readWord
public String readWord()
throws IOException
- Throws:
IOException
readInt
public int readInt()
throws IOException
- Description copied from class:
AbstractTableReader
- Read an integer and return it.
- Overrides:
readInt
in class AbstractTableReader
- Returns:
- an integer.
- Throws:
IOException
- pass it.
readValue
public double readValue()
throws IOException
- Throws:
IOException
readEol
public boolean readEol()
throws IOException
- Throws:
IOException
skipToEol
public void skipToEol()
throws IOException
- Description copied from class:
AbstractTableReader
- Skips the rest of the line.
- Overrides:
skipToEol
in class AbstractTableReader
- Throws:
IOException
- pass the IOException
readVertex
public void readVertex(int n,
int v)
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.
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.