infovis.graph.io
Class DOTGraphReader

java.lang.Object
  extended by infovis.io.AbstractReader
      extended by infovis.table.io.AbstractTableReader
          extended by infovis.graph.io.AbstractGraphReader
              extended by infovis.graph.io.DOTGraphReader

public class DOTGraphReader
extends AbstractGraphReader

Reader class for the DOT file format.

Version:
$Revision: 1.11 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
GraphReaderFactory dot

Constructor Summary
DOTGraphReader(InputStream in, String name, Graph graph)
          Constructor.
 
Method Summary
 String getAttributePrefix()
          Returns the attribute prefix.
 Rectangle2D.Float getBbox()
          Returns the rectangle containing the layed-out graph
 boolean load()
          Main method for loading the file.
 void setAttributePrefix(String prefix)
          Sets the attribute prefix.
 
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
 
Methods inherited from class infovis.io.AbstractReader
createColumn, getEncoding, getName, guessFieldType, setEncoding, setIn, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOTGraphReader

public DOTGraphReader(InputStream in,
                      String name,
                      Graph graph)
Constructor.

Parameters:
in - the input stream
name - the name
graph - the graph
Method Detail

getBbox

public Rectangle2D.Float getBbox()
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.

getAttributePrefix

public String getAttributePrefix()
Returns the attribute prefix.

Returns:
the attribute prefix.

setAttributePrefix

public void setAttributePrefix(String prefix)
Sets the attribute prefix.

Parameters:
prefix - the prefix.

load

public boolean load()
             throws WrongFormatException
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.