y.io.graphml.graph2d
Class NodePortGeometryWriter
java.lang.Object
y.io.graphml.output.AbstractOutputHandler
y.io.graphml.graph2d.AbstractWriteNodePortHandler
y.io.graphml.graph2d.NodePortGeometryWriter
- All Implemented Interfaces:
- EventListener, OutputHandler, OutputHandlerProvider
public class NodePortGeometryWriter
- extends AbstractWriteNodePortHandler
Output handler that writes NodePort geometry data.
| 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 |
NodePortGeometryWriter
public NodePortGeometryWriter()
getKey
protected 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
- Throws:
GraphMLWriteException - if the port data could not be serialized.- Parameters:
port - the port instance whose data has to be serialized.writer - the writer used for writing the port data.context - miscellaneous context information.