Search this API

y.io.graphml.graph2d
Class NodePortGeometryWriter

java.lang.Object
  extended by y.io.graphml.output.AbstractOutputHandler
      extended by y.io.graphml.graph2d.AbstractWriteNodePortHandler
          extended by y.io.graphml.graph2d.NodePortGeometryWriter
All Implemented Interfaces:
java.util.EventListener, OutputHandler, OutputHandlerProvider

public class NodePortGeometryWriter
extends AbstractWriteNodePortHandler

Output handler that writes NodePort geometry data.

 

Constructor Summary
NodePortGeometryWriter()
           
 
Method Summary
protected  java.lang.String getKey()
          Returns "portgeometry".
protected  void writePort(NodePort port, XmlWriter writer, GraphMLWriteContext context)
          Serializes port data to the specified writer.
 
Methods inherited from class y.io.graphml.graph2d.AbstractWriteNodePortHandler
getKeyDefinitionAttributes, getValue, writeValueCore
 
Methods inherited from class y.io.graphml.output.AbstractOutputHandler
addNameToKeyDefinition, addScopeToKeyDefinition, addTypeToKeyDefinition, addUriToKeyDefinition, getDataTagAttributes, getDefaultValue, getPrecedence, getScope, getValidScopes, hasDefaultValueAssigned, isDefaultValue, isValidScope, isWriteKeyDefault, onQueryOutputHandler, setDefaultValue, setDefaultValueAssigned, setPrecedence, setScope, setValidScopes, setWriteKeyDefault, writeKeyDefinitionContent, writeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodePortGeometryWriter

public NodePortGeometryWriter()
Method Detail

getKey

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

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

writePort

protected void writePort(NodePort port,
                         XmlWriter writer,
                         GraphMLWriteContext context)
                  throws GraphMLWriteException
Description copied from class: AbstractWriteNodePortHandler
Serializes port data to the specified writer.

Specified by:
writePort in class AbstractWriteNodePortHandler
Parameters:
port - the port instance whose data has to be serialized.
writer - the writer used for writing the port data.
context - miscellaneous context information.
Throws:
GraphMLWriteException - if the port data could not be serialized.

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