Search this API

y.io.graphml.graph2d
Class NodePortGeometryReader

java.lang.Object
  extended by y.io.graphml.input.AbstractInputHandler
      extended by y.io.graphml.graph2d.AbstractReadNodePortHandler
          extended by y.io.graphml.graph2d.NodePortGeometryReader
All Implemented Interfaces:
InputHandler

public class NodePortGeometryReader
extends AbstractReadNodePortHandler

Input handler that reads NodePort geometry data.

 

Constructor Summary
NodePortGeometryReader()
           
 
Method Summary
 java.lang.String getKey()
          Returns "portgeometry".
 void readPort(NodePort port, org.w3c.dom.Node node, GraphMLParseContext context)
          Deserializes port data for the specified port from the given XML node.
 
Methods inherited from class y.io.graphml.graph2d.AbstractReadNodePortHandler
acceptKey, applyDefault, parseDataCore, setValue
 
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
 

Constructor Detail

NodePortGeometryReader

public NodePortGeometryReader()
Method Detail

getKey

public java.lang.String getKey()
Returns "portgeometry".

Specified by:
getKey in class AbstractReadNodePortHandler
Returns:
"portgeometry".

readPort

public void readPort(NodePort port,
                     org.w3c.dom.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
Parameters:
port - the port instance whose data has to be deserialized.
node - XML node providing the data to deserialize.
context - miscellaneous context information.
Throws:
GraphMLParseException - if the port data could not be deserialized.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.