y.io.gml
Class HierarchicGraphParser
java.lang.Object
|
+--y.io.gml.ItemParser
|
+--y.io.gml.GraphParser
|
+--y.io.gml.HierarchicGraphParser
- All Implemented Interfaces:
- GMLTokenizer.Callback
- public class HierarchicGraphParser
- extends GraphParser
This class works together with HierarchyNodeParser and HierarchyEdgeParser
instances.
It can parse the .graph scope of a hierarchic graph gml file.
It will store the mapping between folder ids (Integer) to element folder
parsers in the graph.
Field Summary |
protected Map |
folderNodeId2Parser
Used to associate a HierarchyNodeParser the the id of the
group node that it needs to parse. |
protected Map |
gid2ChildMap
Used to associate a NodeList containing the children of a
group node with the id of that group node. |
Method Summary |
void |
end()
Groups the graph according to the grouping information that has been
parsed. |
Methods inherited from class y.io.gml.ItemParser |
addChild, attribute, attribute, begin, beginScope, childFinished, endScope, getAttributes, getBoolean, getDouble, getDouble, getInt, getInt, getLevel, getString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
folderNodeId2Parser
protected Map folderNodeId2Parser
- Used to associate a HierarchyNodeParser the the id of the
group node that it needs to parse.
gid2ChildMap
protected Map gid2ChildMap
- Used to associate a NodeList containing the children of a
group node with the id of that group node.
HierarchicGraphParser
public HierarchicGraphParser(Graph2D graph)
end
public void end()
- Groups the graph according to the grouping information that has been
parsed.
- Overrides:
end
in class GraphParser