Class ChacoGraphReader

  extended by
      extended by
          extended by
              extended by

public class ChacoGraphReader
extends AbstractGraphReader

Reader for the Chaco format.

$Revision: 1.2 $
Jean-Daniel Fekete
InfoVis factory arguments:
GraphReaderFactory graph

Constructor Summary
ChacoGraphReader(InputStream in, String name, Graph graph)
Method Summary
 Rectangle2D.Float getBbox()
          Returns the rectangle containing the layed-out graph
static boolean isComment(String line)
 boolean load()
          Main method for loading the file.
Methods inherited from class
findLinkShape, findLinkShapes, findNodeShape, findNodeShapes, getGraph, getLinkShape, getLinkShapes, getNodeShape, getNodeShapes, reset, setLinkShape, setNodeShape
Methods inherited from class
close, getBuffer, getBufferedReader, getCommentChar, getField, getIn, getTable, ignoreLine, isEof, read, readInt, readLine, readQuoted, setBuffer, setCommentChar, setEof, setTable, skipToEol
Methods inherited from class
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


public ChacoGraphReader(InputStream in,
                        String name,
                        Graph graph)
Method Detail


public Rectangle2D.Float getBbox()
Description copied from class: AbstractGraphReader
Returns the rectangle containing the layed-out graph

Specified by:
getBbox in class AbstractGraphReader
the rectangle containing the layed-out graph or null if it is not computed.


public static boolean isComment(String line)


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
true if the file has been loaded without error, false otherwise.
WrongFormatException - if the format is not the one expected.

Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.