main
Class SophiaVisualizer
java.lang.Object
  
main.Visualizer
      
main.SophiaVisualizer
public class SophiaVisualizer
- extends Visualizer
 
The Visualizer class reads in an inputfile and runs the
 GenerateMap that is passed in to create the map object.
 
 
| 
Constructor Summary | 
SophiaVisualizer(java.lang.String inputFileName,
                 GenerateMap generateMap)
 
          Initializes the Visualizer, which reads the input file
 and uses the specified map generator to generate a map. | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
fileParser
private InputFileParser fileParser
nodeDG
private DataGatherer nodeDG
edgeDG
private DataGatherer edgeDG
nodeParameters
private DrawingParameters nodeParameters
edgeParameters
private DrawingParameters edgeParameters
imageParameters
private ImageParameters imageParameters
map
private NodeEdgeMap map
nodeQuery
private QueryDescription nodeQuery
edgeQuery
private QueryDescription edgeQuery
description
private java.lang.String description
generateMap
private GenerateMap generateMap
SophiaVisualizer
public SophiaVisualizer(java.lang.String inputFileName,
                        GenerateMap generateMap)
                 throws java.io.FileNotFoundException,
                        java.io.IOException,
                        java.text.ParseException,
                        java.lang.Exception
- Initializes the 
Visualizer, which reads the input file
 and uses the specified map generator to generate a map.
- Parameters:
 inputFileName - a String that is the input file's namegenerateMap - a GenerateMap that specifies how to draw the
            map
- Throws:
 java.io.IOException - if there's an error opening or reading a file
java.io.FileNotFoundException - if a file is not found
java.text.ParseException - if a parse error occurs
java.lang.Exception
 
getMap
public NodeEdgeMap getMap()
- Overrides:
 getMap in class Visualizer
 
- Returns:
 - the map
 
 
getGenerateMap
public GenerateMap getGenerateMap()
- Overrides:
 getGenerateMap in class Visualizer
 
- Returns:
 - the generateMap