Class MipavSAXReader
java.lang.Object
gov.nih.mipav.view.graphVisualization.MipavSAXReader
SAX Reader for the HyperGraph display. Sets up the parser, which parses the graph xml file and produces a Graph.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate hypergraph.graphApi.Graphprivate hypergraph.graphApi.GraphSystemprivate InputSourceprivate XMLReader -
Constructor Summary
ConstructorsConstructorDescriptionMipavSAXReader(hypergraph.graphApi.GraphSystem graphSystem, URL url) Creates the MipavSAXReader which sets up the XML parser for the graph xml file. -
Method Summary
-
Field Details
-
graphSystem
private hypergraph.graphApi.GraphSystem graphSystem -
inputSource
-
graph
private hypergraph.graphApi.Graph graph -
reader
-
-
Constructor Details
-
MipavSAXReader
Creates the MipavSAXReader which sets up the XML parser for the graph xml file.- Parameters:
graphSystem- GraphSystem creates the Graph.url- Input File- Throws:
IOException
-
-
Method Details
-
getGraph
public hypergraph.graphApi.Graph getGraph()Returns the Graph.- Returns:
- Graph
-
getGraphSystem
public hypergraph.graphApi.GraphSystem getGraphSystem()Returns the GraphSystem.- Returns:
- GraphSystem.
-
parse
Parses the XML file with the Graph description. Returns the new Graph.- Returns:
- new Graph from file.
- Throws:
SAXExceptionParserConfigurationException
-
setGraph
public void setGraph(hypergraph.graphApi.Graph graph) Sets the Graph.- Parameters:
graph- new Graph
-