y.io.graphml.graph2d
Class NodePortGraphicsReader
java.lang.Object
y.io.graphml.input.AbstractInputHandler
y.io.graphml.graph2d.AbstractReadNodePortHandler
y.io.graphml.graph2d.NodePortGraphicsReader
- All Implemented Interfaces:
- InputHandler
public class NodePortGraphicsReader
- extends AbstractReadNodePortHandler
Input handler that reads data related to the visual representation
of a NodePort.
| Methods inherited from class y.io.graphml.input.AbstractInputHandler |
getDefaultValue, getPrecedence, getValidScopes, initializeFromKeyDefinition, isDefaultExists, isParseDefaultValue, parseData, setDefaultExists, setDefaultValue, setParseDefaultValue, setPrecedence, setValidScopes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodePortGraphicsReader
public NodePortGraphicsReader()
getKey
public String getKey()
- Returns "portgraphics".
- Specified by:
getKey in class AbstractReadNodePortHandler
- Returns:
- "portgraphics".
readPort
public void readPort(NodePort port,
Node node,
GraphMLParseContext context)
throws GraphMLParseException
- Description copied from class:
AbstractReadNodePortHandler
- Deserializes port data for the specified port from the given XML node.
- Specified by:
readPort in class AbstractReadNodePortHandler
- Throws:
GraphMLParseException - if the port data could not be deserialized.- Parameters:
port - the port instance whose data has to be deserialized.node - XML node providing the data to deserialize.context - miscellaneous context information.