| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.gml.ItemParser
y.io.gml.NodeParser
public class NodeParser
This class can parse Nodes from valid GML. It is used by GraphParser
| Field Summary | |
|---|---|
| protected  Graph2D | graphThe graph instance for which the nodes will be created. | 
| protected  java.util.Map | id2NodeThe mapping between the gml IDs and the nodes. | 
| protected  LabelGraphicsParser | labelGraphicsThe parser for the label graphics section | 
| protected  NodeGraphicsParser | nodeGraphicsThe parser instance that parses the graphics section | 
| protected  NodeRealizer | nrThe current realizer that is parsed. | 
| Fields inherited from class y.io.gml.ItemParser | 
|---|
| attributes, childMap, delegate, level | 
| Constructor Summary | |
|---|---|
| NodeParser(Graph2D graph,
           java.util.Map id2Node) | |
| Method Summary | |
|---|---|
|  void | begin()this method will be called as soon as the parser enters the scope. | 
|  void | childFinished(ItemParser child)this method will be called, as soon as the a child ItemParser finished and returned from its end() method. | 
|  void | end()this method will be called as soon as the parser leaves the scope. | 
|  java.lang.Object | getItem()Returns the "product" of this scope. | 
| protected  void | handleLabels()Handles the label and label graphics section after parsing. | 
| Methods inherited from class y.io.gml.ItemParser | 
|---|
| addAttribute, addChild, attribute, attribute, beginScope, 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 | 
| Field Detail | 
|---|
protected Graph2D graph
protected NodeRealizer nr
protected NodeGraphicsParser nodeGraphics
protected java.util.Map id2Node
protected LabelGraphicsParser labelGraphics
| Constructor Detail | 
|---|
public NodeParser(Graph2D graph,
                  java.util.Map id2Node)
| Method Detail | 
|---|
public void begin()
ItemParser
begin in class ItemParserpublic void childFinished(ItemParser child)
ItemParser
childFinished in class ItemParserchild - the child ItemParser, which just finishedprotected void handleLabels()
public void end()
ItemParser
end in class ItemParserpublic java.lang.Object getItem()
ItemParserItemParser.end() has been called. The latter should construct
 the resulting item from the collected data and this item
 should be returned by this method. By default, this method
 return the map of the attributes.
getItem in class ItemParserMap| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||