|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xistrat.util.d3.vrmlgraph.GraphFileInputParser
public class GraphFileInputParser
An instance of this class can be used to parse a text file that contains a description of connected nodes. This information is then added to the GraphData object that was passed via the constructor of this class.
Constructor Summary | |
---|---|
GraphFileInputParser(GraphData graph)
Constructor for the GraphFileInputParser object |
Method Summary | |
---|---|
void |
populateFromFile(java.lang.String inputFile)
This method reads from the file specified in inputFile
and parses the data into the GraphData object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphFileInputParser(GraphData graph)
graph
- A GraphData object to store the graph in.Method Detail |
---|
public void populateFromFile(java.lang.String inputFile) throws java.lang.Exception
inputFile
and parses the data into the GraphData object. Any unexpected
results will cause an exception to be thrown. Nodes are added
to a random location between (0,0,0) and (20,20,20).
inputFile
- The filename to read from
java.lang.Exception
- An exception is thrown if any errors occur
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |